我在Codeigniter 3
.我最近安装了Community Auth
,但收到错误:
使用未定义的常量USE_SSL - 假设'USE_SSL'"。
当我将代码更改为 USE_SSL
时,错误已解决,但我想确保这是正确的解决方案,并且USE_SSL
不是某个全局变量或函数与常量,但我在Codigniter
论坛上没有看到任何关于此的内容。
是的,第一步必须是 $config['enable_hooks'] = 真;第二个在/application/config/hooks 中.php添加这些行
$hook['pre_system'] = array(
'function' => 'auth_constants',
'filename' => 'auth_constants.php',
'filepath' => 'hooks'
);
$hook['post_system'] = array(
'function' => 'auth_sess_check',
'filename' => 'auth_sess_check.php',
'filepath' => 'hooks'
);
已解决。我在 cofig 文件中禁用了使用钩子。