/** * добавление новости */ public function action_news_edit() { $params = $this->request->post('params'); $result = Model_News::editNews($params); if (empty($result)) { $this->jsonResult(false); } $this->jsonResult(true); }