problem with pagination |
i use pagination in codeigniter . and show page number but dosn't show previous and next button
controller code PHP Code: $config['base_url'] = base_url() . 'track/category/' . $title . '/page/'; model code : PHP Code: public function getDataByPaging($id, $limit, $start){ here
For one your creating your pagination links before you get you data from the database to display.
Your create links show be last just before your load your view. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
It could also be your uri_segment is wrong, use your web browsers development tools
to see what the segments are being returned or echo out your segments and $page. Most likely you will find that your $page is always returning 0. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |