dzRaty is an extension for Yii framework. It is a wrapper for jQuery Raty, a plugin developed by Washington Botelho that generates a customizable star rating.
To get started, check http://yii.dezero.es/dzraty
Requirements: jQuery and Yii framework 1.0 or above (tested on 1.1.12).
Extract downloaded file to your Yii application extensions folder (default: protected/extensions).
Using with an attribute model. weight is a sample attribute name
$this->widget('ext.DzRaty.DzRaty', array( 'model' => $model, 'attribute' => 'weight', ));
Using with a single input element
$this->widget('ext.DzRaty.DzRaty', array( 'name' => 'my_rating_field', 'value' => 3, ));
$this->widget('ext.DzRaty.DzRaty', array( 'name' => 'my_rating_field', 'value' => 3, 'options' => array( 'readOnly' => TRUE, ), ));
dzRaty translates all translatable elements of jQuery Star plugin. You can place your own translation file under DzRaty/messages.
Current version contains translation files for spanish. You could simply duplicate and edit one of them.
- dzRaty Homepage
- dzRaty Yii Extension Page
- dzRaty Github Page
- jQuery Raty Homepage
- jQuery Raty Github Page