Browse Source

Test app fixed.

tags/2.0.0-beta
resurtm 12 years ago
parent
commit
c6480c646d
  1. 4
      apps/bootstrap/controllers/SiteController.php
  2. 5
      apps/bootstrap/www/index.php

4
apps/bootstrap/controllers/SiteController.php

@ -20,10 +20,6 @@ class SiteController extends Controller
public function actionIndex() public function actionIndex()
{ {
// $x = null;
// $x->y = 100;
throw new \yii\base\HttpException(500, 'Test exception');
// $x = 1;
echo $this->render('index'); echo $this->render('index');
} }

5
apps/bootstrap/www/index.php

@ -3,9 +3,8 @@
// comment out the following line to disable debug mode // comment out the following line to disable debug mode
defined('YII_DEBUG') or define('YII_DEBUG', true); defined('YII_DEBUG') or define('YII_DEBUG', true);
//require(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php'); require(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php');
//require(__DIR__ . '/../vendor/autoload.php'); require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../../../framework/yii/Yii.php');
$config = require(__DIR__ . '/../config/main.php'); $config = require(__DIR__ . '/../config/main.php');

Loading…
Cancel
Save