pagination question : the data change, not the link. |
[eluser]sloth[/eluser]
hi, i have a problem with paging in codeigniter. here my controller in function index: Code: $data['flash_message'] = ''; here my model : Code: function getData_page($num,$offset) here my view : Code: <h2><?php echo $page_title;?></h2> here my problem : i have success to show the data and the links on screen. (it's running well) When i click to the next page (any page) on the links, the data change to the next page data, but the links not change, it still show an first page... i don't know where should i check.. fyi, i modif my script from here when i running the script sample from that page, it running well... ........ when i try another paging sample like this tutorial, this tutorial, and this tutorial it come a same problem before... the data show, but the links stay... -sorry for my english- many people say it's a simple problem, but i can't solve it yet...
[eluser]umefarooq[/eluser]
Hi put in you config Code: $config['uri_segment'] = 4; The pagination function automatically determines which segment of your URI contains the page number. If you need something different you can specify it. check user guide also http://ellislab.com/codeigniter/user-gui...ation.html
[eluser]sloth[/eluser]
it's running well... thx umefarooq.. *oh.. malu aku...* |
Welcome Guest, Not a member yet? Register Sign In |