Commit 5c506ad7e9ff7c34a64ee008480a6cd777a2cb5f
1 parent
e46f120b
ga
Showing
2 changed files
with
4 additions
and
2 deletions
Show diff stats
backend/controllers/ReportController.php
@@ -14,8 +14,11 @@ use yii\web\Controller; | @@ -14,8 +14,11 @@ use yii\web\Controller; | ||
14 | class ReportController extends Controller | 14 | class ReportController extends Controller |
15 | { | 15 | { |
16 | public function actionIndex() { | 16 | public function actionIndex() { |
17 | + $request = Yii::$app->request; | ||
18 | + $dateRange = $request->post('dateRange'); | ||
17 | 19 | ||
18 | return $this->render('index', [ | 20 | return $this->render('index', [ |
21 | + 'range' => $dateRange | ||
19 | ]); | 22 | ]); |
20 | 23 | ||
21 | } | 24 | } |
backend/views/report/index.php
@@ -36,8 +36,7 @@ $this->params['breadcrumbs'][] = $this->title; | @@ -36,8 +36,7 @@ $this->params['breadcrumbs'][] = $this->title; | ||
36 | </div> | 36 | </div> |
37 | 37 | ||
38 | <?php | 38 | <?php |
39 | - $name = $request->post('dateRange'); | ||
40 | - echo $name; | 39 | + echo $range |
41 | 40 | ||
42 | // Загрузка клиентской библиотеки PHP для Google API. | 41 | // Загрузка клиентской библиотеки PHP для Google API. |
43 | 42 |