Hi. I already updated. And add the following lines
use Phalcon\Validation;
use Phalcon\Mvc\Model\Validator\Email as EmailValidator;
use Phalcon\Mvc\Model\Validator\Uniqueness as UniquenessValidator;
public function validation()
{
$this->validate(
new UniquenessValidator(
[
'field' => 'CONT_CEDULA',
'message' => 'Sorry, That username is already taken',
]
)
);
if ($this->validationHasFailed() == true) {
return false;
}
}
But he stays on a white screen does not work