Comments-module
Comments-module copied to clipboard
Comments module for Yii framework
I keep on getting the following error "This item can't be commentable" what should I do to fix this
in Comments/CommentModule.php add new public value $tableName='tbl_comments'; in Comments/models/Comment.php public function tableName() { return Yii::app()->getModule('user')->tableName; } this solution will make customizable name of table
Add Ukrainian translate message
As of jQuery 1.7, .delegate() has been superseded by the .on() method. updated to .on() method.
For using commentsWidget inside others modules we load model from module through 'modelAlias' param in main.php 'commentableModels'=>array( //model with individual settings 'Blog' => array( 'modelAlias' => 'application.modules.blog.models.Blog', ), ),