library/core/class.form.php
public function ValidateModel() {
      $this->_Model->DefineSchema();
      if ($this->_Model->Validation->Validate($this->FormValues()) === FALSE) $this->_ValidationResults = $this->_Model->ValidationResults();
      return $this->ErrorCount();
   }
public function ValidateModel() {
      $this->_Model->DefineSchema();
      if ($this->_Model->Validation->Validate($this->FormValues()) === FALSE) $this->_ValidationResults = $this->_Model->ValidationResults();
      return $this->ErrorCount();
   }
public function ValidateModel ( ) { $ this -> _Model -> DefineSchema ( ) ; if ( $ this -> _Model -> Validation -> Validate ( $ this -> FormValues ( ) ) === FALSE ) $ this -> _ValidationResults = $ this -> _Model -> ValidationResults ( ) ; return $ this -> ErrorCount ( ) ; }
If not saving data directly to the model, this method allows you to
utilize a model's schema to validate a form's inputs regardless.

ie. A sign-in form that just needs to compare data to the model and still
enforce it's rules. Returns the number of errors that were recorded
through validation.

@return int
If not saving data directly to the model this method allows you to utilize a model s schema to validate a form s inputs regardless .