Addition of a preDispatch Method - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Addition of a preDispatch Method (/showthread.php?tid=37010) |
Addition of a preDispatch Method - El Forum - 12-23-2010 [eluser]jdav3579[/eluser] Hi, I've been developing CI Projects for 2 years and since starting with it, I have always found my self creating a hook at post Controller for rendering the result of a controller action being run into the main site layout. I have been investigating Zend framework lately and this has a method called preDispatch which pretty much does this. This mechanism is much neater than the way I've been doing it. I am not aware of CI having anything similar, but I think it would be a nice feature to have. I would be interested to know how other get around the above problem. I would've posted this in the feature request forum, but it says I am not allowed for some reason. John |