[eluser]solid9[/eluser]
Everything can be done in the method/function alone
function searching_test('$keyword, $query_id, $sort_by, $sort_order) {
//capture data here...
//codes to configure the pagination here...
//codes to call the model etc...
//codes here, etc.. etc... etc...
//codes to display your view here...
}
Hope you get the idea.