[eluser]NemetraL[/eluser]
Hello,
The problem is: I'd need to retrieve
Code:
$route['default_controller'];
from a post-controller-constructor hook.
There's the raw way, which consists in copying the Router library code directly inside the hook:
Code:
// Load the routes.php file.
@include(APPPATH.'config/routes'.EXT);
$this->routes = ( ! isset($route) OR ! is_array($route)) ? array() : $route;
unset($route);
The point is: this file has already been loaded and the class has already been created (in the system/codeigniter/CodeIgniter.php file, under the name $RTR).
But once the controller is loaded, I can't find it anymore :-S
Any idea?