Yii CJuiSliderInput API Bug

http://www.yiiframework.com/doc/api/1.1/CJuiSliderInput

2nd example of the CJuiSliderInput:




$this->widget('zii.widgets.jui.CJuiSliderInput', array(

    'model'=>$model,

    'attribute'=>'timeMin',

    'maxAttribute'=>'timeMax,

    // additional javascript options for the slider plugin

    'options'=>array(

        'range'=>true,

        'min'=>0,

        'max'=>24,

    ),

));



should be


$this->widget('zii.widgets.jui.CJuiSliderInput', array(

    'model'=>$model,

    'attribute'=>'timeMin',

    'maxAttribute'=>'timeMax',

    // additional javascript options for the slider plugin

    'options'=>array(

        'range'=>true,

        'min'=>0,

        'max'=>24,

    ),

));

notice the missing single quote after timeMax.

btw. great Framework, keep up the good work.

Thanks for reporting this

Fixed in the trunk - https://github.com/yiisoft/yii/commit/3aaed2ca0bb7d6bda70efd6ddf221288f2c66eaf

Will be visible online only when a new Yii version is release as only then the documentation is re-generated.