Friday, October 29, 2010

Re: 2 database, 1 models and controllers, many views

1. Use themes for two different designs
2. Use some sync software like rsync to update one of the sites controllers, models.
2.1 if both sites on the same server you can use symlink/hardlink (in linux) for controller and models in on of the sites
3. Set each site with its default theme.

Another idea is to use some prefix for one of the sites like admin prefix.
In the controller call in each prefix action for the default action .
function site2_edit()
{
   edit();
}

I am not sure but I think you can change the domain name for each prefix in the apache level.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: