Year Loop In Drop Down?

please anyone help me how to make loop for year from 1990 to 2040 in dropdown menu i done it by findall() and successfullt get value from database but for these year duration i need to put all values in databse thats not possible so tell me the way how to done it by loop … :rolleyes:


CHtml::dropDownList('year', '', range(1990, 2040));

Thanks alooooooot problem Solved

simply awesome framework and an devlopers.