问题
I am currently using CakePHP 2.1.x
and what I would like to do is use one core install of cakePHP for many apps on the same domain.
This is what my current structure looks like.
/var/www
/app/
/webroot
/lib
/Cake
/plugins
/vendors
What I would like to be able to accomplish is mydomain.com/myApp1 mydomain.com/myApp2 mydomain.com/myApp3
/var/www
/apps/
/myApp1
/myApp2
/myApp3
/lib
/Cake
/plugins
/vendors
in the above scenario I'm not sure where /webroot
would go or if there would be multiple /webroot
folders. Also if I have to keep /app
called /app
or if I can call it /apps
instead.
I'm also unsure of which .htaccess
file(s) would have to be modified. Is this scenario possible? Is it a bad idea to do it this way?
来源:https://stackoverflow.com/questions/12304277/multiple-apps-using-the-same-cakephp-core