This is for only a single model?
In that case you can put the if-clause in the constructor.

function __construct($id = false, $table = null, $ds = null) {

    if ( should use special config ) {
        $this->useDbConfig = 'special_config';
    }
    parent::__construct($id, $table, $ds);
}




On Mar 16, 9:27 am, K3 <[email protected]> wrote:
> how can i switch useDbConfig 'on-the-fly' ? it should depend of an URL
> param. I cannot put 'if' statetment in the variable declaration
> section... pls help
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to