Hi everyone !
Once again i've a little problem !
I read a lot of interessant topics talking about very similar problem as mine, but it seems that my issue is a little bit different.
In fact i'm trying to use Phalcon\Mvc\Model\Validator\PresenceOf
like that
public function validation()
{
$this->validate(new PresenceOf(
array(
"field" => "nameAlbum_en",
"message" => "Please be sure to fill the album's name !"
)
));
$this->validate(new Uniqueness(
array(
"field" => "nameAlbum_en",
"message" => "The album name must be unique !"
)
));
return $this->validationHasFailed() != true;
}
The Uniqueness validator works perfectly i have the message i was excepting, but for the PresenceOf i expected to see my message or at least the default message (like the others which had almost the same problem as me in this forum). But it displays absolutly nothing, i tried to disable the nullValidations with the following code:
public function initialize() {
$this->setup(array(
'notNullValidations'=>false,
));
}
Do you have any idea why the flash message isn't displayed (at least the default message) ?
Thanks for you help and sorry to bother, if the solution already have been given somewhere
Brieuc