An'ajax way to comment everything you want in your yii applications.
Yii 1.1 or above
First of all, create sensorario_comments table:
CREATE TABLE IF NOT EXISTS `sensorario_comments` ( `id` int(11) NOT NULL AUTO_INCREMENT, `semantic_id` varchar(50) NOT NULL, `datetime` datetime NOT NULL, `user` varchar(50) NOT NULL, `comment` text NOT NULL, PRIMARY KEY (`id`) );
Second, add module SensorarioModuleComment in your config file.
When at any point of your website you want to bring up a series of comments, use this widget and indicates a semantic id that defines the thread of comments.
$this->widget('SensorarioModuleComment.CommentLoader', array('semanticId' => 'SEMANTIC_ID_OF_YOUR_COMMENT'));
Total 1 comment
Please put a Demo
Leave a comment
Please login to leave your comment.