Files
2026-09-14 16:32:07 +08:00

21 lines
711 B
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Hooks
| -------------------------------------------------------------------------
| This file lets you define "hooks" to extend CI without hacking the core
| files. Please see the user guide for info:
|
| https://codeigniter.com/user_guide/general/hooks.html
|
*/
$hook['post_controller_constructor'][] = array(
'class' => 'ManageAuth', //类名
'function' => 'auth', //执行的方法
'filename' => 'ManageAuth.php', //文件名
'filepath' => 'hooks' //文件路径,默认是application/hooks
);