課程
/后端開發(fā)
/PHP
/Yii框架不得不說的故事—基礎(chǔ)篇(1)
不知道怎么回事
2015-07-20
源自:Yii框架不得不說的故事—基礎(chǔ)篇(1) 2-1
正在回答
我是按照視頻先訪問自己服務(wù)器上面的basic/requirements.php 顯示配置符合Yii要求。然后我才再訪問的basic/web/index.php ? ? index.php全部代碼如下:
<?php
// comment out the following two lines when deployed to production
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
$config = require(__DIR__ . '/../config/web.php');
(new yii\web\Application($config))->run();
下次能不能先把代碼貼出來??
落櫻bless 提問者
看index.php 12行代碼
舉報(bào)
通過本視頻教程,為學(xué)習(xí)YII的快速、安全、專業(yè)的特性打下基礎(chǔ)
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2015-07-21
我是按照視頻先訪問自己服務(wù)器上面的basic/requirements.php 顯示配置符合Yii要求。然后我才再訪問的basic/web/index.php ? ? index.php全部代碼如下:
<?php
// comment out the following two lines when deployed to production
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
$config = require(__DIR__ . '/../config/web.php');
(new yii\web\Application($config))->run();
2015-07-20
下次能不能先把代碼貼出來??
2015-07-20
看index.php 12行代碼