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
-~----------~----~----~----~------~----~------~--~---