// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
// 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);
Yii::createWebApplication($config)->run();
```
*Explanation:*
In thise directory:
~~~
yii/
1.1.8/
~~~
we move the core in the folder 1.1.8 (based on the version of the Framework), so in this way, we can upgrade the Yii Framework without hurting the operation.
In our WebApp folder:
~~~
webapp/
1.0/
- so in t~~~
This way, we are working based on the version of the WebApp, we now rename the folder 'protected' to 'webapp', and then create a folder based on the version of the webapp, in the example is '1.0' ( in this folder, we put all the subfolders we have 'models, controllers etc..').