3 คำตอบ
Warning: require_once(C:\AppServ\www\yiiadmission/../../yii/framework/yii.php) [function.require-once]: failed to open stream: No such file or directory inC:\AppServ\www\yiiadmission\index.php on line 12
Fatal error: require_once() [function.require]: Failed opening required 'C:\AppServ\www\yiiadmission/../../yii/framework/yii.php' (include_path='.;C:\php5\pear') inC:\AppServ\www\yiiadmission\index.php on line 12
แก้ไขไฟล์ index.php ให้ include ไปยังไฟล์ yii.php ใน folder framework ครับ
ช่วยแก้code ให้ดูหน่อยได้มั้ยค่ะ
<?php
// change the following paths if necessary
$yii=dirname(__FILE__).'/../../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();
php?>