[eluser]xwero[/eluser]
Oops the routing library isn't accessible but you could extend the URI library or add
Code:
$this->router =& load_class('Router');
To your own l library but it might be a bit overkill if you only going to use it to get the default controller
Extending the URI would be
Code:
class MY_URI extends CI_URI
{
function MY_URI()
{
parent::CI_URI();
}
function getdefault()
{
return $this->router->default_controller;
}
}