We are going to deploy the new yiiframework.com website on March 23, 2018 from 8:00 to 12:00 UTC.
Website and Yii documentation will not be available in this time frame. Check the news for more details.


Articles tagged with "activedropdownlist"X
Displaying 1-1 of 1 result(s).

Drop down list with enum values for column of type ENUM >+> incorporate into giix

Created 6 years ago by c@cbaHow-tos4 comments – viewed 38,172 times – ( +14 / -1 ) – version 1.1
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a drop down list, which has the enum values as options. The main code was contributed by zaccaria in the forum (see this post).