Hello everyone,
im new and this is my first post, first thing i want to say is that i really love yii, since im working with it since a couple of weeks, but now my question.
In my active form i want to have a slider for a difficult level, like easy,medium,hard… but so far i can only get integers from my slider, this might be a stupid question but is it possible to set values in the slider for each input?
$this->widget(‘zii.widgets.jui.CJuiSliderInput’, array(
'model'=>$model,
'attribute'=>'difficult',
'options'=>array(
'min'=>1, <- difficult easy
'max'=>4, <- hard
),
));
and then have an array for the values? or do i have to use something like a switch?.
Thanks.