簡體   English   中英

連接到Yii框架

[英]connecting to Yii framework

所以我在打開一個在Yii框架中工作的項目時遇到了問題。 如上所述,我安裝了XAMPP,下載了Yii所需的文檔,提取了需要的所有內容,但仍然在編寫此消息:

“警告:require_once(C:\\ xampp \\ htdocs \\ radnici \\ framework \\ yii.php):無法打開流:第12行的C:\\ xampp \\ htdocs \\ radnici \\ index.php中沒有此類文件或目錄

致命錯誤:require_once():無法在C:\\ xampp \\ htdocs \\中打開所需的'C:\\ xampp \\ htdocs \\ radnici \\ framework \\ yii.php'(include_path ='.; C:\\ xampp \\ php \\ PEAR')第12行上的radnici \\ index.php”

這是index.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($yii);
Yii::createWebApplication($config)->run();

您是否嘗試從composer安裝? 這是安裝yii的首選方法

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM