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