Hello, I've created a blog site from "Beginning CakePHP from novice to professiona"-David Golding. I have the comment view listed below:
<div class="comments form">
<?php echo $form->create('Comment');?>
<fieldset>
<legend><?php __('Add Comment');?></legend>
<?php
echo $form->input('name');
echo $form->input('content');
echo $form->input('post_id');
?>
</fieldset>
<?php echo $form->end('Submit');?>
</div>
<div class="actions">
<ul>
<li><?php echo $html->link(__('List Comments', true), array('action' => 'index'));?></li>
<li><?php echo $html->link(__('List Posts', true), array('controller' => 'posts', 'action' => 'index')); ?> </li>
<li><?php echo $html->link(__('New Post', true), array('controller' => 'posts', 'action' => 'add')); ?> </li>
</ul>
</div>
The problem is after i press Submit the values remains in name and content fields. Can anybody help me?
Thanks,