In my local setup, I have a load of various CakePHP websites. I use a Mac, so the folder structure is similar to ~/Users/cameron/Sites/sample-website , and then on each of these sites I will have a typical Cake folder and App folder.
What I would like to do is to have only the main folder with cakes, and then ALL ALL sites to pull out from one core of the cake, so I do not have the same material several times. I read several guides online: http://rickguyer.com/cakephp-one-core-many-apps/
So, I have a folder for the cake here: ~/Users/cameron/Sites/cake-1.3/ , and then my site here: ~/Users/cameron/Sites/sample-site/ , and in this folder I have the usual application folder and htaccess to tell where to find web road, etc.
Now I edited the index.php file inside webroot as a tutorial, but changed only one line because I did not move the OUTSIDE files from the application folder like it. So the only thing I changed is the following:
if (!defined('CAKE_CORE_INCLUDE_PATH')) { define('CAKE_CORE_INCLUDE_PATH', '..'.DS.'..'.DS.'cake-1.3'); }
As far as I can tell, they look through two directories correctly and find a folder named cake-1.3 , but it just gives a 500 error?
Any ideas what the problem is? Thanks
EDIT:
Even that doesn't work ??? Which if I echo: echo CAKE_CORE_INCLUDE_PATH; gives /Users/cameron/Sites/cake-1.3 , and if I paste it into the address bar, it loads the cake folder, so that definitely the correct JUST folder structure doesnβt like to look at the cake outside the main URL?
if (!defined('CAKE_CORE_INCLUDE_PATH')) { define('CAKE_CORE_INCLUDE_PATH', DS.'Users'.DS.'cameron'.DS.'Sites'.DS.'cake-1.3'); echo CAKE_CORE_INCLUDE_PATH; }