Switching Controllers - 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: Switching Controllers (/showthread.php?tid=39385) |
Switching Controllers - El Forum - 03-09-2011 [eluser]Freewolf[/eluser] Greetings All, Is there a way to switch controllers from inside another controller. I want to switch controllers and show a certain sub function (page) if there is a certain variable passed in another controller. Am I making sense here? Switching Controllers - El Forum - 03-09-2011 [eluser]WanWizard[/eluser] Redirect to the new controller? Switching Controllers - El Forum - 03-09-2011 [eluser]Freewolf[/eluser] Yes that is exactly what I want to do. Basically I set up a custom 404 page so that it can work with our templating system. Rather than be hard coded. If certain conditions are met in a controller I want to display that 404 method from the other controller that I made. |