public function actionDelete() { $id = $_GET['id']; $comment = new ModelComment(); $comment->id = $id; $comment->delete(); header('Location: /admin'); }