mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 22:39:52 +08:00
Test app fixed.
This commit is contained in:
@@ -20,10 +20,6 @@ class SiteController extends Controller
|
||||
|
||||
public function actionIndex()
|
||||
{
|
||||
// $x = null;
|
||||
// $x->y = 100;
|
||||
throw new \yii\base\HttpException(500, 'Test exception');
|
||||
// $x = 1;
|
||||
echo $this->render('index');
|
||||
}
|
||||
|
||||
|
||||
@@ -3,9 +3,8 @@
|
||||
// comment out the following line to disable debug mode
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
|
||||
//require(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php');
|
||||
//require(__DIR__ . '/../vendor/autoload.php');
|
||||
require(__DIR__ . '/../../../framework/yii/Yii.php');
|
||||
require(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php');
|
||||
require(__DIR__ . '/../vendor/autoload.php');
|
||||
|
||||
$config = require(__DIR__ . '/../config/main.php');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user