ReportController.php 493 Bytes
<?php
/**
 * Created by PhpStorm.
 * User: Alex Savenko
 * Date: 28.12.2016
 * Time: 21:47
 */

namespace backend\controllers;

use yii\web\Controller;

class ReportController extends Controller
{
    public function actionIndex() {

        $dateRange = \Yii::$app->request->post('dateRange');

        return $this->render('index', [
            'range' => $dateRange
        ]);

    }

    public function actionCallback() {

        return $this->render('callback', [
        ]);

    }
}