Yii directory paths
1. Move runtime out of protected folder to out of webroot
2. Move framework out of webroot
3. Move an application out of webroot
Then, modify index.php
// change the following paths if necessary
$yii=dirname(__FILE__).'/../../framework/yii.php';
$config=dirname(__FILE__).'/../../protected/config/main.php';
and add runtime in /protected/config/main.php
return array(
'runtimePath' => Yii::getPathOfAlias('system') . '/../runtime/',
...
);
No comments:
Post a Comment