Multiple apps using the same CakePHP core

大城市里の小女人 提交于 2019-12-12 01:39:21

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!