Welcome Guest, Not a member yet? Register   Sign In
Lazy database initialization

[eluser]Sam Dark[/eluser]
If you want to connect to the DB only when needed — add following to your database.php:
$db['default']['autoinit'] = FALSE;

nice share Smile

Wait, I thought you had to explicity tell CI to automatically connect to the DB in the first place, otherwise you could tell it to connect when you load a model.

[eluser]Sam Dark[/eluser]
Try it…

Theme © iAndrew 2016 - Forum software by © MyBB