/** * Validate the form * * @param array $data * @return boolean */ public function isValid($data) { if ($this->_formCreated === false) { throw new \Engine\Exception('Form not created!'); } return $this->_form->isValid($data); }
/** * Validate the form * * @param array $data * @return boolean */ public function isValid($data) { if (!$this->isFormCreated()) { throw new \Engine\Exception('Form not init!'); } return $this->_form->isValid($data); }