I am trying to save rating in db but it fails where as if I place a value in database table it sucessfuly reterives it and shows.
in my $model->rating is the rating of person in that table.
following is the code
<div class="row">
<?php echo $form->labelEx($model,'rating'); ?>
<?php echo $model->rating;
$this->widget('CStarRating',array(
'model'=>$model,
'attribute'=>'rating',
'maxRating'=>5,
'starCount'=>5,
'readOnly'=>false,
)); ?>
</div>