Everything’s working fine and nicely, but i need to store the value into my database and have no idea how to extract/retrieve the value the user selected. I tried searching thru google and apparently no one’s asking such a retarded question such as i, could any pros out there enlighten me? =[
I’ll probably retrieve the value from cstarrating and from my database, find the average and update back into the database, unless there’s a built in function in yii which im unaware of o.o
CStarRating displays a star rating control that can collect user rating input.
CStarRating is based on jQuery Star Rating Plugin. It displays a list of stars indicating the rating values. Users can toggle these stars to indicate their rating input. On the server side, when the rating input is submitted, the value can be retrieved in the same way as working with a normal HTML input. For example, using
$this->widget('CStarRating',array('name'=>'rating'));
we can retrieve the rating value via $_POST['rating'].