Searching from database table


I am still new to yii and would like to put a dropdown with values and a textfied and search a table based on the values and display the results in $content.

Any help would be appreciated.

Take a look at the code generated by Gii, the action admin.

There is a search form (the subview _search) wich is used to filter the CGridView.

This is a good sample for start in creating what you need.