Thomas
Thomas

Reputation: 27

Yii CRUD render mysql date view

The gii CRUD generator automatically generates in _form view a text field. Is it possible to automatically generate 3 dropdown lists, one for year, month and day? Thanks.

Upvotes: 0

Views: 429

Answers (1)

Eirik Hoem
Eirik Hoem

Reputation: 1310

I do not think there are any automated generations for that. Check out CJuiDatePicker if using that can be an option. If not, you will need to generate the values for the dropdowns and set them in dropdowns the manual way.

Upvotes: 1

Related Questions