Advanced Search Function

Hi,

I am new in yii framework. Currently, i encounter the problem to create customized search function.





My idea is when user choose fields and click show button , i want to show only relative data records.





Please check the attachment file.





Thank you

I suggest that you use Gii to create the Crud operations that have a similar functionality. You can than peek in on how that is done and adapt the generated pages to your needs.

Hi zawzaw, welcome to the forum.

I agree with le_top. Gii generated "admin" page is truly a good starting block, because it already has an "advanced search" functionality.

Please take a look at this wiki article.

It explains the "admin" page, and you will know how you can customize it to your needs.

http://www.yiiframework.com/wiki/381/cgridview-clistview-and-cactivedataprovider