Welcome Guest, Not a member yet? Register   Sign In
Retrieving the default controller config item
#2

[eluser]NemetraL[/eluser]
Gosh I posted that too fast..

A simple:
Code:
$ci =& get_instance();
$ci->uri->router->routes['default_controller'];
is what I was looking for. I found it using:
Code:
var_dump($ci);
Problem solved.

PS: it's incredibly useful to var_dump() the main controller from time to time to remember all the things it carries with it along the code execution ;-).


Messages In This Thread
Retrieving the default controller config item - by El Forum - 08-25-2007, 04:54 PM
Retrieving the default controller config item - by El Forum - 08-25-2007, 04:58 PM
Retrieving the default controller config item - by El Forum - 08-26-2007, 07:44 PM
Retrieving the default controller config item - by El Forum - 08-27-2007, 03:16 AM
Retrieving the default controller config item - by El Forum - 04-15-2011, 04:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB