$yii=dirname(__FILE__).'/framework/yiilite.php'; require_once dirname(__FILE__).'/k-config.php'; $config=dirname(__FILE__).'/protected/config/front_main.php'; // remove the following line when in production mode defined('YII_DEBUG') or define('YII_DEBUG',true); require_once($yii); Yii::createWebApplication($config)->run();