CakePHP: comments plugin help

viyanali

New Member
I'm trying to implement the cakephp comments plugin found here: http://cakedc.com/downloads/view/cakephp_comments_pluginI 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 :(\[code\]<div id="post-comments"> <?php $commentWidget->options(array('allowAnonymousComment' => false));?> <?php echo $commentWidget->display();?></div>\[/code\]This displays the add comments inputs and it DOES save comments and all the neccessary foreign keys, etc but it just doesn't display themAnyone know what's gone wrong?Jonesy
 
Back
Top