likedislike Simple extension for putting like or dislike count to your yii application

  1. Requirements
  2. Usage
  3. Resources

A simple yii extension to keep like dislike functionality

Requirements

  • Yii 1.1 or above
  • yii-user module
  • jquery.js
  • url without index.php and urlmanager enabled in config/main.php

INSTALLATION

  • Unzip
  • Copy the likedislike folder to protected/modules/

  • under config/main/

        'modules'=>array(
                       'likedislike',
                        ),
    
  • and under import array in the config file, add

       'application.modules.likedislike.models.*',
    
  • Import protected/modules/data/tbl_likedislike.sql

  • You are ready to go

Usage

To display like dislike in blog feeds

<?php $this->widget('likedislike.widgets.LikeDislikeButton',array('field_id'=>your filed/blog/post id*)) ?>

*your filed/blog/post id : it should be the id of the item you want to be liked or disliked

foreach($model as $row){
echo $row->title.$row->post;
$this->widget('likedislike.widgets.LikeDislikeButton',array('field_id'=>$row->id));
}

Resources

1 1
11 followers
764 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Developed by: Ashok Poudel
Created on: Feb 20, 2013
Last updated: 11 years ago

Downloads

show all

Related Extensions