Enable hooks and implement global login checking
Controllers that have to be publicly available can be introduced in application/hooks/global.php
This commit is contained in:
@@ -91,7 +91,7 @@ $config['charset'] = 'UTF-8';
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = false;
|
||||
$config['enable_hooks'] = true;
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -10,6 +10,12 @@
|
||||
|
|
||||
*/
|
||||
|
||||
$hook['post_controller_constructor'] = array(
|
||||
'class' => '',
|
||||
'function' => 'check_login',
|
||||
'filename' => 'global.php',
|
||||
'filepath' => 'hooks'
|
||||
);
|
||||
|
||||
|
||||
/* End of file hooks.php */
|
||||
|
||||
Reference in New Issue
Block a user