Je viens de voir que si je met :
echo $this->Comment->form('Post',$post'Post']'id']);
J'ai ceci comme résultat :
Form->create('Comment', array('id' => 'commentForm', 'url' => array('controller' => 'comments', 'action' => 'add', 'plugin' => 'comment'))); ?> Session->flash('commentForm'); ?> Form->input('username',array('label'=> __('Pseudo'))); ?> Form->input('mail',array('label'=>__ ('Email'),'placeholder' => 'user@domain.com', 'div' => array('class' => 'input text mail'))); ?> Form->input('content',array('label'=> __('Commentaire'),'type' => 'textarea')); ?> Form->input('ref',array('type' => 'hidden', 'value' => $ref)); ?> Form->input('ref_id',array('type' => 'hidden', 'value' => $ref_id)); ?> Form->unlockField('Comment.parent_id'); ?> Form->input('parent_id',array('type' => 'hidden', 'default' => 0)); ?> Form->end(__ ('Envoyer')); ?>
Je ne comprends vraiment pas d'ou vient le problème.
Merci à vous pour votre aide.