show data of search result

i have a simple search form in the header section of my site. and i set an action for this form.i got a value in $_POST in this action.and i also did my code here whatever i want to do.

But now i am getting stuck here when i am trying to display this search result with proper pagination in view file.anybody give me how to display this result in view file as i want…!!!

thanks in advance…!!

Use a CActiveDataProvider + CGridView.

Take inspiration from a gii generated Admin action.