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

namespace backend\controllers;

use yii\web\Controller;
use backend\models\DateRange;

class ReportController extends Controller
{
    public function actionIndex() {

        $model = new DateRange();
        $dateRange = \Yii::$app->request->post('date');

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

    }

    public function actionCallback() {

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

    }
}