Commit 3c4acdaf authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлен метод manage

parent 3b11275f
<?php
/**
* Created by PhpStorm.
* User: PHOENIX
* Date: 10.04.16
* Time: 17:10
*/
namespace common\modules\analyticsSchool\controllers;
use common\components\AdminController;
use common\modules\analyticsSchool\models\AnalyticsSchoolLesson;
use yii\data\ActiveDataProvider;
class LessonAdminController extends AdminController {
/**
* @return array|void
*/
public static function actionsTitles(){
return [
'Manage' => 'Управление уроками',
'Create' => 'Добавление нового урока',
'View' => 'Просмотр урока',
'Update' => 'Редактирование урока',
'Delete' => 'Удаление урока',
];
}
/**
* @return string
*/
public function actionManage(){
$dataProvider = new ActiveDataProvider([
'query' => AnalyticsSchoolLesson::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