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