I am having issues trying to change database configurations
dynamically with cake version 1.2.0.4798alpha. I have the db configs
defined correctly in database.php, each one works when I set
$useDbConfig initially in the model, but when I set useDbConfig to the
other one dynamically, the initial one is still used. So it seems
like the app is ignoring any calls like "$this->useDbConfig = ..." I
am making these calls in my model's callback functions: (ex)
class Post extends AppModel {
var $useDbConfig = 'first_config';
...
...
function beforeFind() {
$this->useDbConfig = 'second_config'; //still uses
'first_config!!'
}
}
What am I doing wrong here?
Thanks in advance,
Greg
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---