Suggestion : Hook callback - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: Suggestion : Hook callback (/showthread.php?tid=64617) |
Suggestion : Hook callback - djha - 03-12-2016 Hi, Hook allows to pass parameters only in the configuration array. Code: $hook['pre_controller'] = array( A great feature could be used the returned values of method as hook parameters. For example, for the hook "Post Controller", params will be the values returned by the Controller/Method called. In this case, you can used this values to render view by the hook. Code: // Method controller |