Hi all. im new to yii. Im implementing CJuiDatePicker for the registration page and i’ve been trying to figure out how to set the range of the year that the user can choose from the dropdown in CJuiDatePicker. I’ve been trying to find the answer throughout the forum but no result yet.
when i use ‘yearRange’=>1982 the CJuiDatePickerwon’t work.
try this out in your widget option, working fine with mine.
'options'=>array(
'showAnim'=>'fold', // appear style
'dateFormat'=>'dd-mm-yy', // date format
'changeMonth'=>'true',
'changeYear'=>'true',
'yearRange'=>'1982', // answer of your question
),