Ok, je comprends
J'ai jamais utilisé mais sur la doc j'ai trouvé ceci
Displaying and checking errors
FormHelper::error(string $fieldName, mixed $text, array $options)
Shows a validation error message, specified by $text, for the given field, in the event that a validation error has occurred.
Options:
‘escape’ bool Whether or not to html escape the contents of the error.
‘wrap’ mixed Whether or not the error message should be wrapped in a div. If a string, will be used as the HTML tag to use.
‘class’ string The classname for the error message
FormHelper::isFieldError(string $fieldName)
Returns true if the supplied $fieldName has an active validation error.:
<?php
if ($this->Form->isFieldError('gender')) {
echo $this->Form->error('gender');
}
Note
When using FormHelper::input(), errors are rendered by default.
Je pense que tu devrai pouvoir t'en sortir avec ça
Dans ta vue
if($this->Form->isFieldError(Comment.nomDeTonChamps)
echo $this->Form->error(Comment.nomDeTonChamps,'messageErreur',$optionsSiTuAs);
Après je ne sais pas si le message peut être récupéré sur ton model, normalement je dirai que oui.