public function actionDeleteManager() { if ($this->isDeleteAllowed()) { $this->layout = 'hrd'; if (Yii::$app->request->get()) { HrdManager::deleteAll('id_Manager = ' . Yii::$app->request->get()['id']); return $this->render('index_Manager'); } return $this->render('index_Departement'); } else { echo "You don't have access here"; die; } }