/** * Возвращает список ссылок для левого меню * @return array */ public function getLeftMenu() { $list = parent::getLeftMenu(); if ($this->action->id === 'update') { $list[] = ['label' => 'Удалить', 'url' => ['/admin/education/delete', 'id' => Yii::$app->request->get('id')]]; } return $list; }
/** * Возвращает список ссылок для левого меню * @return array */ public function getLeftMenu() { $list = parent::getLeftMenu(); if ($this->action->id === 'update') { $list[] = ['label' => 'Удалить', 'url' => ['/admin/user/delete', 'id' => Yii::$app->request->get('id')]]; } if ($this->action->id === 'mailcv') { $list = [['label' => 'Резюме', 'url' => ['/admin/user/update', 'id' => Yii::$app->request->get('user_id')]]]; } return $list; }