public function post($id, $aValues) { $id = intval($id); $aValues = explode("\r\n", $aValues); // try { SiteMap::manualOrder($id, $aValues); } catch (SiteMapException $e) { $this->addError('Сортировка не удалась. Ряд не найден в бд'); } $this->afterPost(); $this->jump('./order.php?id=' . $id); }