Suggest: use relative path to include Yii Framework in the index.php

current content of the entry script index.php is as follows:

<?php





// change the following paths if necessary


$yii='D:xampphtdocsyiiframeworkyii.php';


$config=dirname(__FILE__).'/protected/config/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();


This requires additional modification once the user upload the work to web site, since Yii uses an absolute path. Typically the absolute path settings of dev env are far from web site's. Using relative path can avoid this kind of effort.

Another dev enviroment can take place: say, you have multiple (probably related) projects and use local svn tree for the framework. At such case it may be handy to have Yii sticked to the only (svn tree) place, still enabling any directories mutations among projects themselves.

celleo

Then simply make it relative.  Usually whether it is relative or absolute you will have to change it upon upload to the server anyways.  Actually, you will have to change it anyways to turn debug off.  You really only need to upload it to the server once anyways because you don't change that file very often.