Commit a359c5c3 authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлен контроллер и действие для отображения таблицы рассылок по кейсам

parent b1a92be2
<?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
]
);
}
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment