<?php
/**
 * Created by PhpStorm.
 * User: PHOENIX
 * Date: 25.03.16
 * Time: 18:39
 */

namespace common\modules\triggers\controllers;


use common\components\AdminController;
use common\modules\triggers\models\CasesSchedule;
use yii\data\ActiveDataProvider;

class CasescheduleAdminController extends AdminController {
    /**
     * @return array|void
     */
    public static function actionsTitles(){
        return [
            'Manage' => 'Расписание рассылок',
        ];
    }

    /**
     * @return string
     */
    public function actionManage(){
        $dataProvider = new ActiveDataProvider([
            'query' => CasesSchedule::find()
        ]);

        return $this->render(
            'manage',
            [
                'dataProvider' => $dataProvider
            ]
        );
    }
} 