How to retrieve the value of 'default_controller' ? |
[eluser]stormbytes[/eluser]
I'm wondering if it's possible to retrieve the value for 'default_controller' from Routes?
[eluser]stormbytes[/eluser]
Hiya InsiteFX I don't think that's right... $this->router->fetch_class() returns the 'current' class (and not the default_controller). Now, I don't actually "know" this But after watching the Netbeans debugger cycle through enough times, you start deducing things Especially when the $var I've assigned that result to changes with each pass! I do know it's somewhere in the Router class..
[eluser]stormbytes[/eluser]
Oh here's a source: Quote:fetch_class() URL: http://www.tig12.net/downloads/apidocs/codeigniter/libraries/CI_Router.class.html
[eluser]stormbytes[/eluser]
In case someone comes across this post looking for the same... Code: // Load the routes.php file. Taken from: http://ellislab.com/forums/viewthread/159796/ |
Welcome Guest, Not a member yet? Register Sign In |