For cakePHP 1.3
Plugin to add Comment to any model item for CakePHP
- Put the content of this plugin in "app/plugins/" in a folder named "comment".
- Run "database.sql" in the database.
In the controller you want to allow to add comment
var $components = array('Comment.Commenting');
In the model
var $actsAs = array("Comment.Commented");
In the view
echo $this->element('comments_box',array('plugin'=>'comment'));