Admin Advanced Search

I would like to know how to amend the advanced search form, in particular:

  1. To remove some attributes

  2. To modify some attributes. For example on my User view I populate a Membership Type field with the entry:

array(‘value’ => $model->membershipType->type, ‘label’ => ‘Membership Type’ )

How do I do something similar on the search form? Currently the user would need to know the id of the record in the membership_type table.

If you’re talking about the Gii generated advanced search then it’s in the file “_search.php” and all you have to do is edit that file to spit out the data like you want. Or are you generating your own advanced search?