CodeIgniter Forums
Pagination when last segment is an $row->id How to do this ???? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Pagination when last segment is an $row->id How to do this ???? (/showthread.php?tid=14997)



Pagination when last segment is an $row->id How to do this ???? - El Forum - 01-23-2009

[eluser]Mohsen32[/eluser]
Hi

It the link to my categories:
http://domain.com/index.php/ads/cat/1.html

I went mixed up in doing this, any help would be appreciated.


Pagination when last segment is an $row->id How to do this ???? - El Forum - 01-23-2009

[eluser]xwero[/eluser]
The category id will always be there so the base_url will be something like
Code:
$config['base_url'] = site_url('ads/cat/'.$cat_id);



Pagination when last segment is an $row->id How to do this ???? - El Forum - 01-31-2009

[eluser]Mohsen32[/eluser]
Oops!
I tried my best but couldn't do it, Will you provide me with the full codes needed for doing this?
I mean The View, Controller and Model.

Thanks for helpin' out a truely newbie.


Pagination when last segment is an $row->id How to do this ???? - El Forum - 02-04-2009

[eluser]Mohsen32[/eluser]
Anyone ?