/** * Пересортировываем поля * * @param array $_REQUEST['data'] Массив field_id, sort c сортировкой */ public function sortfieldsAction() { foreach ($this->getParam('data') as $row) { $where = $this->_modelFields->getAdapter()->quoteInto('field_id = ?', $row['id']); $this->_modelFields->update(array('sort' => $row['sort']), $where); } }