<?php //index.php //入口文件配置操作 // change the following paths if necessary $yii=dirname(__FILE__).'/framework/yii.php'; //加载yii框架 $config=dirname(__FILE__).'/protected/config/main.php'; //加载配置如数据库等设定 // remove the following line when in production mode…