CakePHP Shared core for multiple apps

前端 未结 5 1891
我寻月下人不归
我寻月下人不归 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条回答
  •  萌比男神i
    2020-12-10 09:19

    If you have access to your php.ini, you can add the path to Cake core there. Doing it this way means you don't have to change webroot/index.php at all. Example in php.ini:

    include_path = ".:/usr/local/lib/php:/home/something/phpinc/cakephp2/lib"
    

    According to the CakePHP 2.x docs, this is the recommended way to share the Cake core (assuming you have access to your php.ini).

提交回复
热议问题