I want to put a text with all the values of a dropdownlist.
The query returns the values (1, 2, 3, 4, 5).
This values will by fill a dropdownlist.
But i wanna put a text with the values. By example: "5 dias", instead of just "5".
Somebody knows how i can do this?
We, that’s a good way to solve it.
But before i try it, i wanna know if haven’t a attribute in htmlOptions of the dropDownList, to solve this.
In Cmenu, exists the "template" propertie. In dropDownList have something like this?
Sorry, but I don’t understand your question…
Read the documentation http://www.yiiframework.com/doc/api/1.1/CHtml#dropDownList-detail for available options.