[eluser]Volosatos[/eluser]
[quote author="thepyromaniac" date="1202194384"]You can do it two ways. Include the database config file in the routers file, then use native mysql functions to connect to the db and populate your arrays.
OR
you could try forcing the database class to load a little earlier. Doubt that will work that way as the files are only variable includes arent part of the CI super-object.[/quote]
I tried the first way, but unsuccessfully, because variables in database config file, can't be displayed, I don't understand why..
For example, after i include config file, i tried to display this:
Code:
echo $db['default']['hostname'];
but the result is empty!
And it is very difficult to debug it because display errors is OFF. And I can't fine where i can switch in on. In index.php it doesn't work. In my php.ini errors are enabled too.