Hey Mark,
So I'm pretty sure some of the functions I used are specific to 1.2.
But you can try. I'll give you a basic overview of what I did.
I made a componant, and inside the componant in the initialize
method.. I do this:
(all the connection data is stored in a Client Model, that I load with
loadModel)
$newDb =&
ConnectionManager::create('myconn_name',
array('driver' => 'mysql'
,'host'
=> $client->data['Client']['db_host']
,'login'
=> $client->data['Client']['db_login']
,'password' =>
$client->data['Client']['db_password']
,'database' =>
$client->data['Client']['db_name']
,'persistent' => false
And then in my app_model I set
var $useDbConfig = 'myconn_name';
Again, I'm not sure at all how well this will work in 1.1
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---