Exemplo n.º 1
0
 public function jsonLoadAction()
 {
     if ($this->_form->getId()) {
         //nur laden wennn einen id über get daherkommt
         $row = $this->_form->getRow();
         if (!$this->_hasPermissions($row, 'load')) {
             throw new Kwf_Exception('You don\'t have the permission for this entry.');
         }
         $this->_beforeLoad($row);
         $this->view->data = $this->_form->load(null);
     }
     if ($this->getRequest()->getParam('meta')) {
         $this->_appendMetaData();
     }
 }