Commit 24f5e579c5aaaea0ade0e21266bad71cfa8d42b3
1 parent
088ff909
ga
Showing
1 changed file
with
2 additions
and
4 deletions
Show diff stats
backend/controllers/ReportController.php
| @@ -9,14 +9,12 @@ | @@ -9,14 +9,12 @@ | ||
| 9 | namespace backend\controllers; | 9 | namespace backend\controllers; |
| 10 | 10 | ||
| 11 | use yii\web\Controller; | 11 | use yii\web\Controller; |
| 12 | -use yii\web\Request; | ||
| 13 | - | ||
| 14 | 12 | ||
| 15 | class ReportController extends Controller | 13 | class ReportController extends Controller |
| 16 | { | 14 | { |
| 17 | public function actionIndex() { | 15 | public function actionIndex() { |
| 18 | - $request = Yii::$app->request; | ||
| 19 | - $dateRange = $request->post('dateRange'); | 16 | + |
| 17 | + $dateRange = \Yii::$app->request->post('dateRange'); | ||
| 20 | 18 | ||
| 21 | return $this->render('index', [ | 19 | return $this->render('index', [ |
| 22 | 'range' => $dateRange | 20 | 'range' => $dateRange |