Welcome Guest, Not a member yet? Register   Sign In
How to reuse an established DB connection in an another controller ?
#3

[eluser]FabD[/eluser]
Aniket,
Thank for your answer. I see what you mean but the autoload is Ok if you know the user/password but here the user has to log in the application and based on what the user entered as info I do this in my main controller :

Code:
$dsn = 'oci8://'.$user.':'.$password.'@local_db';        
$this->load->database($dsn);

$user and $password are not already known while the autoload runs.

Do I have to repeat that operation in every controller ?


Messages In This Thread
How to reuse an established DB connection in an another controller ? - by El Forum - 03-02-2009, 07:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB