好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

mac环境下如何配置yii环境

这是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

 

查看更多关于mac环境下如何配置yii环境的详细内容...

  阅读:42次