Hello, I'm trying to rebuild my application using CakePHP, but I have a relatively unique issue (I think). I need to be able to create numerous subdirectories and have them all inherit the same functionality as the webroot.
So, for example, I have a class Users. Then I can go to http://mydomain.com/users/edit and use the edit action of my controller. But I also want to be able to go to http://mydomain.com/subdirectory/users/edit and also use the edit action. Each subdirectory should inherit the functionality of all of the controllers in my application, the only difference is each subdirectory will be associated with a unique Id in certain tables of my database and will fetch the data it is associated with. Can anyone suggest a way to accomplish this using CakePHP? URL rewriting perhaps? I also want to be able to change the views associated with each subdirectory (or at least set a new default layout), and I need to be able to create these with relative ease and speed. I can't do this using GET parameters (ie. mydomain.com/subdirectory/ users/edit?directory_id=6) because clients need to be able to specify pretty URLs to give out. Apologies if this is a naive question, I'm not too familiar with using mod_rewrite. Thanks in advance for any advice! 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 [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
