Hi everybody,

I'm French and I'm using CakePhp 1.2 since one month.
I don't understand why the validation error messages are not
displaying for a textarea field...

My model:

[code]
class Article extends AppModel {
        public $name = 'Article';

        public $validate = array (
      'titre' =>
                                        array(
                                'rule' => VALID_NOT_EMPTY,
                                'message' => 'Le titre est obligatoire !'
                                        ),

                'contenu' =>
                                        array(
                                'rule' => VALID_NOT_EMPTY,
                                'message' => 'Le contenu est obligatoire !'
                                        ),

                'auteur' =>
                                        array(
                                'rule' => VALID_NOT_EMPTY,
                                'message' => 'L\'auteur est obligatoire !'
                                        )
   );
}
[/code]

And my view :
[code]
<h2>Ajout article</h2>
<?= $errorMessage; ?>
<form id="AjoutArticle" method="post" action="<?php echo $html->url('/
admin/articles/add/')?>">
<?php
echo $form->input('Article.titre');
echo $form->input('Article.sous_titre');
echo $form->label('Article.chapeau', 'Chapeau');
echo $form->textarea('Article.chapeau');
echo $form->label('Article.contenu', 'Contenu');
echo $form->textarea('Article.contenu');
echo $form->input('Article.auteur');
echo $form->submit('Enregistrer');
?>
</form>
[/code]

For the input fields, the validation is OK and the error message is
displayed.
For the textarea, the validation is OK but the error message is not
displayed??


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to