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