How to load hook for particular controller
问题 I am new in codeigniter. I want to load hooks for admin panel controller. $hook['post_controller_constructor'][] = array( 'class' => 'AdminData', 'function' => 'myfunction', 'filename' => 'loginhelp.php', 'filepath' => 'hooks', 'params' => array() ); 回答1: The post_controller_constructor hook gets called after a $class is loaded. The class that gets loaded is based on the route parameters. system/core/Codeigniter.php /** *<code> * http://example.com/adminData/method *</code> * * $CI = new