/** * Пересортировываем поля * * @param array $_REQUEST['data'] Массив field_id, sort c сортировкой */ public function sortpublicationsAction() { if (!$this->_rubric) { throw new Exception('rubric_id не определён'); } $data = $this->getParam('data'); $this->_modelPublications->sort($data['current'], $data['next'], $data['prev']); }