[eluser]Twisted1919[/eluser]
Salut

You could try like this :
Code:
function some_function($criteriul_1='all',$criteriul_2='all',$criteriul3='all')
{
$count_results = $this->model->count_something($criteriul_1,$criteriul_2,$criteriul_3);
[...]
}
I mean, give your function the params that you expect to have for search(if you have too many params go with func_get_args() ), and give them a default value,that will help you when you will make the pagination:
Code:
$config['base_url'] = site_url().'/controller/method/'.$criteriul_1.'/'.$criteriul_2.'/'.$criteriul_3.'/;
$config['uri_segment'] = 6;
The model function needs to look something like :
Code:
if($criteriul_1 != 'all'){
//add here a query part that includes $criteriul_1
}
if($criteriul_2 != 'all'){
// same
}
if( $criteriul_3 != 'all' ){
//same
}
This example is only as an idea, just open your eyes, you will get it .
Let me know if you have question .