yii 第一步

第一步:index.php


// include Yii bootstrap file
require_once(dirname(__FILE__).'/../../framework/yii.php');
defined('YII_DEBUG') or define('YII_DEBUG',true);

// create a Web application instance and run
//Yii::createWebApplication()->run();


$configFile=dirname(__FILE__).'/protected/config/main.php';
$app=Yii::createWebApplication($configFile);
$app->run();

原文地址:https://www.cnblogs.com/achengmu/p/3943002.html