This is possible to do, you have to create the form field with CHtml::textbox instead of CHml::activeTextbox.
Another approach is to use the 2 models for create standard active input field, and then write a composite search function.
You can create the search function for user that will return a CDbCriteria and pass it to the search to the member user, for example.
This will allow you to do:
public function actionSearch()
{
$user= new User('search');
$Member= new User('Member');
// set atttibutes to both
$dataProvider= $user->combinedSearch($member->combinedSearch());
}
Is there a way of easily populating non ‘Active’ fields with the GET variable values? For example currently I have to do something like this on each field:
If it is not supposed to be saved in database, I use CFormModel. This is a really good class: it gives you validation rules (and safe attributes), attribute label (with required label in views) and setAttribute.
I advice you to use the same (and I considere a bad practice to rely on $_GET in views, is really not mvc)
Aaaah - that works but it brings me back to square one - the model name is included in the URL - makes it look very untidy - not that it really matters but I prefered the standard query string!