CakePHP Shared core for multiple apps

前端 未结 5 1892
我寻月下人不归
我寻月下人不归 2020-12-10 08:45

On my local setup I have a load of different CakePHP websites. I\'m using a Mac so the folder structure is something like ~/Users/cameron/Sites/sample-website a

5条回答
  •  醉话见心
    2020-12-10 09:37

    Is this a misunderstanding of the folder structure of CakePHP?

    From the docs (CakePHP folder structure):

    • The app folder will be where you work your magic: it’s where your application’s files will be placed.
    • The cake folder is where we’ve worked our magic. Make a personal commitment not to edit files in this folder. We can’t help you if you’ve modified the core.

    So the cake folder shouldn't change between all of your uses, therefore you have 1 copy. You can always change some of the functionality of the core by making your own changes in the app folder i.e. extending.

提交回复
热议问题