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