[eluser]CroNiX[/eluser]
You could create a helper function to determine what segment it is.
something like (untested):
Code:
function get_page_from_uri($search = 'page')
{
$CI =& get_instance();
$uri = split('/', $CI->uri->uri_string());
$segment = null;
foreach($uri as $k => $v)
{
if ($search == $v)
{
$segment = $k + 2; //segments start at 1, so add 2 to get segment after this one
break;
}
}
return $segment; //will be null if not present, or the segment number if found.
}
So if the url was: tasks/index/status/progress/page/4
Code:
$config['pagination']['uri_segment'] = get_page_from_uri(); //6