/** * отмечаем все сообщения пользователя прочитанными */ public function action_make_read() { $res = Model_Message::makeRead(['note_guid' => null]); if (empty($res)) { $this->jsonResult(false); } $this->jsonResult(true); }