I just managed to break my entire site by changing folder names of the root folder and my protected folder. I created a backup of the application in case anything went wrong, and that folder was named "from_backup" now the problem is that if i rename "from_backup" to anything else the application breaks. Also if I rename the "application" folder it was named "lux_app" and worked originally, however i wanted it to just be called "app". I made all the changes in the index.php file, but it only works if i use the original names "from_backup" and "lux_app" Is this a bug in Yii, or is there some "lock" towards folder names??
this is my index.php file
<?php
$dir = dirname(__FILE__);
//$dir = str_replace('/public', '/', $dir);
require 'lux_app/config/globals.php';
// change the following paths if necessary
$yii= 'framework/yii.php';
if(preg_match('/lasselarsen/', $dir)){
$config= 'lux_app/config/dev.php';
} else {
$config= 'lux_app/config/prod.php';
}
// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',false);
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
require_once($yii);
$app = Yii::createWebApplication($config);
//Yii::import("ext.yiiext.components.zendAutoloader.EZendAutoloader", true);
// And then call the loaded class
//EZendAutoloader::$prefixes = array('Zend', 'Custom');
//Yii::registerAutoloader(array("EZendAutoloader", "loadClass"));
if (YII_DEBUG){
//Yii::import("application.components.FirePHPCore.fb", true);
}
$app->run();
if I change “lux_app” to “app” in both folder name and in the index.php file the site breaks…
Please help this is driving me nuts!