yii: drop down list filter in CGridView

by prettyscripts on 2010-11-12 15:40:00 • 8 comments »

phpyii

by default the filter for each data column is a text field. to display the field as drop down list, CDataColumn::filter property must be set as an array. for example, for user table there's column for sex represented by 1 = male and 2 = female. in the… more »

Tags: column, dropdown, filter, framework, grid, input, yii

symfony: customize admin generator filter

by prettyscripts on 2010-05-19 15:27:49 • 3 comments »

phpsymfony

i want to create a yes / no choice field if a field is null or not. eg, a membership table with suspend_date field. i want to be able to filter list of member who is or not suspended. in filter part of /path/to/application/module/config/generator.yml… more »

Tags: admin, filter, symfony