Commit b4cf971e authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлено контроллер админки кейсов

parent d01bedc6
<?php
/**
* Created by PhpStorm.
* User: PHOENIX
* Date: 27.04.16
* Time: 20:32
*/
namespace common\modules\cases\controllers;
use Yii;
use common\components\AdminController;
use common\modules\content\models\SearchCoContent;
class CasesAdminController extends AdminController {
public static function actionsTitles(){
return [
'Manage' => 'Управление кейсами',
'Create' => 'Добавление кейса',
'Update' => 'Редактирование кейса',
'View' => 'Просмотр кейса',
'Delete' => 'Удаление кейса',
];
}
public function actionManage(){
$casesSearchModel = new SearchCoContent();
$casesDataProvider = $casesSearchModel->search(4, Yii::$app->request->queryParams);
$this->render(
'manage',
[
'casesSearchModel' => $casesSearchModel,
'casesDataProvider' => $casesDataProvider
]
);
}
}
\ 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