Create a form on your posts view. Include a hidden field with the value of the
post id (echo $this->Form->hidden('post_id', array('value' =>
$this->data('Post.id')); ). When the form is submitted (by clicking the submit
button inside the form) you should find the Comment.post_id field is populat
I have two classes: Post and Comment.
I wish to have the comment form on each post and if somebody press the
submit button of a comment, that comment to be subscribed to that
post.
How can i do that?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP r