这是index.php入口文件
<?php
// change the following paths if necessary
$yii='framework\yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';
// 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();
报错内容如下
Warning: require_once(framework\yii.php): failed to open stream: No such file or directory in/boran/webs/eshop/index.php on line 13
Fatal error: require_once(): Failed opening required 'framework\yii.php' (include_path='.:/Applications/XAMPP/xamppfiles/lib/php') in /boran/webs/eshop/index.php on line 13