/** * Reload saveJson for checking body first */ public function saveJson() { if (!$this->body) { require_once 'Hush/Html/Form/Exception.php'; throw new Hush_Html_Form_Exception("please call Hush_Html_Form::buildForm method first"); } return parent::saveJson(); }