Select Year From 1900 Till Current Year

Do we have a widget or extension in yii which I can use for showing an option to select only year in XXXX format?

this should be updated in the database once I select and submit the form.




<?= CHtml::dropDownList('fieldName', 'fieldValue', range(1900, date('Y'))); ?>



Thanks Keith! Working, only I had to use the CHtml::activedropDown…