开发者

CakePHP: comments plugin help

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开发者_如何学Python 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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜