[eluser]Jérôme Jaglale[/eluser]
I need a config variable in order to build the redirect URL.
When I look at the logs, I can see ''Config Class Initialized". Is there a way to use the config variables directly in MY_exceptions ?
I tried
Code:
require_once(APPPATH."config/config.php");
but since the config array in the config file is not global.. :-(
UPDATE: the solution was in the Router class:
Code:
$this->config =& load_class('Config');
echo $this->config->item('base_url');