谁一开始就是大神?

yii路径出现错误,我是新手,求大神教一下!!!![1.1]

我原本用yiic webapp ../demos 建立一个在E:wamp/www/yii下的demos,用<?php echo Yii::getFrameworkPath(); ?>显示E:\wamp\www\yii\framework,但是现在我想把demos移动到wamp/www目录下面,不想用绝对路径,可是不知道怎么入手,下面是移动了demos位置,然后在http://localhost/demos查看,下面出现这样的错误,求解决方法和讲解一下!!!!!!各位大神们!!!!!

( ! ) Warning: require_once(E:\wamp\www\0512test/../framework/yii.php) [function.require-once]: failed to open stream: No such file or directory in E:\wamp\www\0512test\index.php on line 12

( ! ) Fatal error: require_once() [function.require]: Failed opening required 'E:\wamp\www\0512test/../framework/yii.php' (include_path='.;C:\php\pear') in E:\wamp\www\0512test\index.php on line 12

这是E:\wamp\www\0512test\index.php

<?php

// change the following paths if necessary
$yii=dirname(__FILE__).'/../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(dirname(__FILE__).'/protected/config/constants.php');
require_once($yii);
Yii::createWebApplication($config)->run();

问题出在这一句:
按照你提供的信息,应该是:

赞(0) 打赏
未经允许不得转载:菜鸟之家 » yii路径出现错误,我是新手,求大神教一下!!!![1.1]

评论 抢沙发

登录

找回密码

注册