第一步: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();
时间: 2024-10-13 01:12:05