From f3d23ec0e97b67c48b0857f293ca123d7437a028 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sun, 19 May 2013 21:22:12 -0400 Subject: [PATCH] Fixed framework path. --- apps/bootstrap/yii | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) mode change 100644 => 100755 apps/bootstrap/yii diff --git a/apps/bootstrap/yii b/apps/bootstrap/yii old mode 100644 new mode 100755 index cee771a..fa8db10 --- a/apps/bootstrap/yii +++ b/apps/bootstrap/yii @@ -13,9 +13,8 @@ defined('YII_DEBUG') or define('YII_DEBUG', true); // fcgi doesn't have STDIN defined by default defined('STDIN') or define('STDIN', fopen('php://stdin', 'r')); -$frameworkPath = __DIR__ . '/../../yii'; - -require($frameworkPath . '/Yii.php'); +require(__DIR__ . '/vendor/yiisoft/yii2/yii.php'); +require(__DIR__ . '/vendor/autoload.php'); $config = require(__DIR__ . '/config/console.php');