課程
/后端開發
/PHP
/Yii框架不得不說的故事—基礎篇(1)
不知道怎么回事
2015-07-20
源自:Yii框架不得不說的故事—基礎篇(1) 2-1
正在回答
我是按照視頻先訪問自己服務器上面的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行代碼
舉報
通過本視頻教程,為學習YII的快速、安全、專業的特性打下基礎
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2015-07-21
我是按照視頻先訪問自己服務器上面的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行代碼