From c6480c646d3f255a9fd77b6fa12c4ddd837ba526 Mon Sep 17 00:00:00 2001 From: resurtm Date: Sat, 25 May 2013 21:53:15 +0600 Subject: [PATCH] Test app fixed. --- apps/bootstrap/controllers/SiteController.php | 4 ---- apps/bootstrap/www/index.php | 5 ++--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/bootstrap/controllers/SiteController.php b/apps/bootstrap/controllers/SiteController.php index 99a5906..ff3b8b4 100644 --- a/apps/bootstrap/controllers/SiteController.php +++ b/apps/bootstrap/controllers/SiteController.php @@ -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'); } diff --git a/apps/bootstrap/www/index.php b/apps/bootstrap/www/index.php index cb363a0..3b7b2fc 100644 --- a/apps/bootstrap/www/index.php +++ b/apps/bootstrap/www/index.php @@ -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');