@@ -3,7 +3,7 @@ |
||
3 | 3 | |
4 | 4 | $config = [ |
5 | 5 | 'id' => 'test-app', |
6 | - 'basePath' => dirname(__DIR__). "/../src/", |
|
6 | + 'basePath' => dirname(__DIR__) . "/../src/", |
|
7 | 7 | 'aliases' =>[ |
8 | 8 | '@vendor' => '@app/../vendor', |
9 | 9 | '@bower' => '@vendor/bower-asset', |
@@ -16,8 +16,8 @@ |
||
16 | 16 | |
17 | 17 | protected function _before() |
18 | 18 | { |
19 | - $_SERVER['REQUEST_URI']='index.php'; |
|
20 | - $config = require( __DIR__ . "/../_config/test.php"); |
|
19 | + $_SERVER['REQUEST_URI'] = 'index.php'; |
|
20 | + $config = require(__DIR__ . "/../_config/test.php"); |
|
21 | 21 | $this->model = new SiteController('site', new \yii\web\Application($config)); |
22 | 22 | \Yii::$app->controller = $this->model; |
23 | 23 | \Yii::$app->controller->action = new Action('fake', $this->model); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | |
26 | 26 | <div id="content" class="wrapper"> |
27 | - <?= $this->render('content.php',['content' => $content]) ?> |
|
27 | + <?= $this->render('content.php', ['content' => $content]) ?> |
|
28 | 28 | </div> |
29 | 29 | |
30 | 30 | <?php $this->endBody() ?> |