I am trying to get this Zend Validator to output a link that goes to a resetpass form. At the moment, it is simply outputting the HTML as text. Any ideas on how to get it writing to the page as HTML?
Thanks!
Here's my code:
protected $_authAdapter;
protected $_messageTemplates = array(
self::NOT_UNIQUE => 'This email has already been registered! <a href=\'/user/resetpass/\'>Need to reset your password?</a>'
);
public function isValid($value, $context=null)
{
$value = (string) $value;
$users = new Users(array('db' => 'tdb'));
if($users->userExists($value)){
$this->_error(self::NOT_UNIQUE);
return false;
}
return true;
}
}