*/
public function actionIndex()
{
+ if (($resp = $this->checkAccess()) !== null) {
+ return $resp;
+ }
$filter = new \yii\base\DynamicModel([
'group_id', 'subgroup_id', 'is_archive',
'date_from', 'date_to',
*/
public function actionView($id)
{
+ if (($resp = $this->checkAccess()) !== null) {
+ return $resp;
+ }
return $this->render('view', [
'model' => $this->findModel($id),
]);
*/
public function actionCreate()
{
+ if (($resp = $this->checkAccess()) !== null) {
+ return $resp;
+ }
$model = new MatrixBouquetActuality();
if ($this->request->isPost) {
*/
public function actionUpdate($id)
{
+ if (($resp = $this->checkAccess()) !== null) {
+ return $resp;
+ }
$model = $this->findModel($id);
if ($this->request->isPost && $model->load($this->request->post()) && $model->save()) {
*/
public function actionDelete($id)
{
+ if (($resp = $this->checkAccess()) !== null) {
+ return $resp;
+ }
$this->findModel($id)->delete();
return $this->redirect(['index']);