Re: CakePHP - Multiple database connection, NOT working
eeroxasjr: I am currently using multiple databases, and initially had some troubles. In addition to what Samuel said, I also explicitly added the persistent => false element to the array that isn't there initially. After adding this, it worked fine for me. On May 28, 11:02 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Good Morning! > > I can't seem to find a solution for this bug... > > I've got a 'Fatal error: Cannot redeclare class dbosource in /home/ > imperium/devel/chowking/cake/libs/model/datasources/dbo_source.php on > line 38' error... > > I'm accessing a Model in a different database, and this is what I get. > > Hope anyone could help me... > > :(( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: CakePHP - Multiple database connection, NOT working
I've not done this recently but make sure that you are not using persistent connection 'connect' => 'mysql_connect' not 'connect' => 'mysql_pconnect' but you might also need to post some code examples from your model that uses the other db, maybe something will jump out for someone if you show your code. It's like trying to diagnose a broken car because you tell me it just turns left. On 5/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Good Morning! > > I can't seem to find a solution for this bug... > > I've got a 'Fatal error: Cannot redeclare class dbosource in /home/ > imperium/devel/chowking/cake/libs/model/datasources/dbo_source.php on > line 38' error... > > I'm accessing a Model in a different database, and this is what I get. > > Hope anyone could help me... > > :(( > > > > > -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---