public validationHasFailed ()
Check whether validation process has generated any messages
use Phalcon\Mvc\Model; use Phalcon\Mvc\Model\Validator\ExclusionIn as ExclusionIn; class Subscriptors extends Model { public function validation() { $validator = new Validation(); $validator->validate('status', new ExclusionIn(array( 'domain' => array('A', 'I') )); return $this->validate($validator); } }
Please login to continue.