Exemplo n.º 1
0
 public function actionDel()
 {
     $id = $_GET['id'];
     Note::deleteAll(['id' => $id]);
     $this->redirect(['/notes']);
 }