On Feb 16, 11:51 am, Henrik Gemal <[email protected]> wrote:
> what should I set as the default "useDbConfig" in my model?
>
> Say I have a model called "x". This model is located in database which
> I dont know the name of when loading the model uses "uses"
>
> I first know the database name after I query the first name where I
> get the name of the database.
>
> So should I create a dummy database config? or set it to something
> like false?
You probably need to either set useDbConfig = $x; where $x is a db
config you can always connect to and has the table for the model your
loading OR useTable = false.
Alternatively look at the model.php code and look for what you need to
override, hard to say anything else given you gave no reasoning for
why you're doing what you're doing.
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---