public function jsonSaveAction()
 {
     parent::jsonSaveAction();
     $session = new Kwf_Session_Namespace('Kwf_AutoForm_Test');
     if ($session->count == 0) {
         $session->count++;
         throw new Kwf_Exception('error');
     }
 }
Esempio n. 2
0
 public function jsonSaveAction()
 {
     parent::jsonSaveAction();
     //don't send added id because we use a FnF model where this entry can't get edited anyway
     unset($this->view->data['addedId']);
 }