feat: init project codebase
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?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
|
||||
);
|
||||
Reference in New Issue
Block a user