...Like this:
 if (env('SERVER_ADDR') == '127.0.0.1')
Configure::write('WebApp.mode', 'devel');

On Feb 11, 9:05 am, Braindead <[email protected]> wrote:
> Instead of changing a value in core.php you could switch the database
> depending on the current DOCUMENT_ROOT or SERVER_NAME or some other
> server variable that fits for the distinction between development
> server and production server.
>
> That's the way I do it and it works very well for me.
--~--~---------~--~----~------------~-------~--~----~
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