Hi guys,
Our website is going to work as follows:
- There's a central site www.example.org where everybody can register, change information, manage their 'business card'.
- Also, everybody will have companyname.example.org. Here users can publish a simple site based on information they change in the main site.
This site is being built on CakePHP. I'm wondering what a good setup for this is. After doing some googling it appears to be common to create a separate directory for controllers and models for reusing, but in this case I want to really share all the code, except routes and views.
Is it possible to change routes based on a domainname. Would this be considered 'appropriate' for CakePHP at all. Rather than a solution that 'does' the job, I would prefer to find the best practice.
Thanks!