Another thing we use here is dirty hack includes in config files:
This is my standard database.php file:
<?php
switch (strtolower($_SERVER['SERVER_NAME'])) {
case 'site.local':
case 'site':
include APP . DS . 'config' . DS . 'database_local.php';
break;
case 'test.site.example.com':
include APP . DS . 'config' . DS . 'database_test.php';
break;
default:
include APP . DS . 'config' . DS . 'database_live.php';
break;
}
?>
Which we use to save having to mess about with config on deployment. A
similar solution would work for TWIOF's case, and may be the simplest
option.
Simon
http://www.simonellistonball.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---