public function editAction(\Difra\Param\AnyInt $id) { $rootNode = $this->root->appendChild($this->xml->createElement('FP_editform')); $formNode = $rootNode->appendChild($this->xml->createElement('form')); if (!\Difra\Plugins\FormProcessor::getInstance()->getFormXML($formNode, $id->val())) { $this->view->httpError(404); } }
public function formAction(\Difra\Param\AnyInt $id) { $formViewXml = $this->root->appendChild($this->xml->createElement('fp_viewform')); \Difra\Plugins\FormProcessor::getInstance()->getFormXML($formViewXml, $id->val()); }