public function setinitloctreeAction() { $id = Zend_Filter::filterStatic($this->getRequest()->getParam('id'), 'StripTags'); $rootId = Zend_Filter::filterStatic($this->getRequest()->getParam('root'), 'StripTags'); if (is_numeric($id) && is_numeric($rootId)) { try { $initModel = new InitiativeModel($id); $initModel->setRoot($rootId); } catch (Exception $e) { $this->view->error = $e->getMessage(); Globals::getLog()->err('ADMIN set initiative location tree error: ' . $this->view->error); $this->render('error-xhr'); } } }