Do they belong to you? Claim these comments.
joren
Is this you? Claim Profile »
1 year ago
in CakePHP Install: Multiple Subdirectories & 500 Error on Ninja vs Penguin
addition :
due to posting the ’ needs to be changed to ' (the single apos next to enter)
due to posting the ’ needs to be changed to ' (the single apos next to enter)
1 year ago
in CakePHP Install: Multiple Subdirectories & 500 Error on Ninja vs Penguin
hey thanks alot for the help to start, i have made some modifications that might help alot of people ..
these small modifications will save you lots of works!!
what they do are the following :
generate on-the-fly the ROOT-location and more!!!
i have tested it and i loved it myself :)
===========================
so what you need to do is, open the original /app/webroot/index.php
go to line 41 and replace the following lines with the original!
chdir("../../");
$root = getcwd();
if (!defined('ROOT')) {
//define('ROOT', 'FULL PATH TO DIRECTORY WHERE APP DIRECTORY IS LOCATED DO NOT ADD A TRAILING DIRECTORY SEPARATOR';
//You should also use the DS define to seperate your directories
define('ROOT', $root.DS.'apps');
}
if (!defined('APP_DIR')) {
//define('APP_DIR', 'DIRECTORY NAME OF APPLICATION';
define('APP_DIR', basename(dirname(__FILE__)));
}
/**
* This only needs to be changed if the cake installed libs are located
* outside of the distributed directory structure.
*/
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
//define ('CAKE_CORE_INCLUDE_PATH', FULL PATH TO DIRECTORY WHERE CAKE CORE IS INSTALLED DO NOT ADD A TRAILING DIRECTORY SEPARATOR';
//You should also use the DS define to seperate your directories
define('CAKE_CORE_INCLUDE_PATH', $root);
these small modifications will save you lots of works!!
what they do are the following :
generate on-the-fly the ROOT-location and more!!!
i have tested it and i loved it myself :)
===========================
so what you need to do is, open the original /app/webroot/index.php
go to line 41 and replace the following lines with the original!
chdir("../../");
$root = getcwd();
if (!defined('ROOT')) {
//define('ROOT', 'FULL PATH TO DIRECTORY WHERE APP DIRECTORY IS LOCATED DO NOT ADD A TRAILING DIRECTORY SEPARATOR';
//You should also use the DS define to seperate your directories
define('ROOT', $root.DS.'apps');
}
if (!defined('APP_DIR')) {
//define('APP_DIR', 'DIRECTORY NAME OF APPLICATION';
define('APP_DIR', basename(dirname(__FILE__)));
}
/**
* This only needs to be changed if the cake installed libs are located
* outside of the distributed directory structure.
*/
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
//define ('CAKE_CORE_INCLUDE_PATH', FULL PATH TO DIRECTORY WHERE CAKE CORE IS INSTALLED DO NOT ADD A TRAILING DIRECTORY SEPARATOR';
//You should also use the DS define to seperate your directories
define('CAKE_CORE_INCLUDE_PATH', $root);