CodeIgniter Forums
Pagination problem with parameters - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Pagination problem with parameters (/thread-1917.html)

Pagination problem with parameters - El Forum - 07-05-2007

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!