[Solved] Hooks not working with HMVC - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: [Solved] Hooks not working with HMVC (/showthread.php?tid=66106) |
[Solved] Hooks not working with HMVC - wolfgang1983 - 09-05-2016 I have a controller called Login.php and is class is Login And a function called check() I would like the hook to check that function first how ever even with testing code it not working on HMVC Not sure why not work with HMVC? Its not throwing any errors I have enabled hooks on config.php Any ideas? PHP Code: $hook['pre_controller'] = array( Login PHP Code: <?php RE: Hooks not working with HMVC - wolfgang1983 - 09-05-2016 Found my error did not need to have application PHP Code: $hook['pre_controller'] = array( To PHP Code: $hook['pre_controller'] = array( |