[eluser]NeoArc[/eluser]
[quote author="NeoArc" date="1343832379"]You can access the variable anytime using:
Code:
$route['default_controller'] = "Blog";
define('DEFAULT_CONTROLLER', $route['default_controller'] );
If you want to edit it before calling the controller you can do it overriding the CI_Router class. [/quote]
I posted this code before, I hope it will be useful if you know how to use constants.