I found a solution to this, maybe it's not elegant and has some
drawbacks.
into the index.php of webroot I declared :
define('DBSPOT', 'dev.mydb');
into the database.php
just replace
'database' => DBSPOT,
It works wihtout problems, this solution works if you use the same
user/pw and also the db host.
Hope this helps
On Jun 5, 10:09 am, AD7six <[EMAIL PROTECTED]> wrote:
> On Jun 5, 9:45 am, MrTufty <[EMAIL PROTECTED]> wrote:
>
> > The easiest technique I've seen used an additional to the database.php
> > in app/config, which sets the DB config based on the host.
>
> I concur :).
>
> If you do the switching in your app model - that might be too late.
> Before any app code is run, cake checks if it can connect to the
> database defined in the "$default" configuration, and if it's can't,
> you get nothing but 404s.
>
> >From the archives:
>
> http://bin.cakephp.org/view/1807006486
>
> hth,
>
> AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---