I forgot to mention that it only happens on methods I created that
uses $this->query();

Dérico Filho wrote:
> Hi!
>
>
> I am developing a tool which read/writes data into one database, and
> only reads data from another one, my database.php is something like
> this:
>
> class DATABASE_CONFIG {
>       var $default = array(
>               'driver' => 'mysql',
>               'connect' => 'mysql_connect',
>               'database' => 'ReadWriteDatabase'
>       );
>
>       var $data = array(
>               'driver' => 'mysql',
>               'connect' => 'mysql_connect',
>               'database' => 'ReadOnlyDatabase'
>       );
> }
>
>
> In a single controller, I invoke Models which access both databases...
> the var $useDbConfig is rightly setted.
>
> The issue is:
>
> When I use some Model which access $data database, the CakePHP 1.2 RC2
> tries to access it in $default, why does it happen? Do I have to
> configure something else in Model files?
>
>
> Tks
> D�rico
--~--~---------~--~----~------------~-------~--~----~
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