CodeIgniter Forums

Full Version: Pagination problem with parameters
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]woracal[/eluser]
hi all!

Stuck with pagination.

My URL is something like this

/index.php/category/getcategory/1 where 1 is the category number i need to display. Also need pagination on the page.

I'm currently using this in my controller

$config['base_url'] = base_url().'index.php/category/getcategory/'.$categoryid.'/'.$offset;

I've also set the $config['uri_segment'] = 4; so that it picks up the 4th elemsnt in the URI for pagination. Also tried different combinations. Still doesn't work!

REALLY appreciate any help. Stuck with this for a day now!