tags:

views:

45

answers:

1

Hi

I'm trying to implement the cakephp comments plugin found here: http://cakedc.com/downloads/view/cakephp_comments_plugin

I have a projects_controller which I want to add comments to.

Everything has gone fine whilst following the instruction I can add comments and they are saved in the comments table but they are not displaying on the project view.

I assumed it was because there was no association between project and comments so I have created a belongTo and a hasMany associations between them but still to no avail :(

<div id="post-comments">
    <?php $commentWidget->options(array('allowAnonymousComment' => false));?>
    <?php echo $commentWidget->display();?>
</div>

This displays the add comments inputs and it DOES save comments and all the neccessary foreign keys, etc but it just doesn't display them

Anyone know what's gone wrong?

Jonesy

A: 

For some reason I thought the comments plugin actually displayed the comments as well. turns out it doesn't so I just added them myself

iamjonesy