![]() |
Pagination + URI Routing problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Pagination + URI Routing problem (/showthread.php?tid=37117) |
Pagination + URI Routing problem - El Forum - 12-28-2010 [eluser]mo2men[/eluser] hi this my code routes.php Code: $routes['review/(:any)'] = "review/index/$1"; review.php Code: <?php review_model Code: <?php now i use Pagination and $routes['review/(:any)'] and when go http://localhost/site/review/mo2men/3 mo2men = $url no get next records(data) from mysql i don't know problem with mysql (model) or bath help???????????? Pagination + URI Routing problem - El Forum - 12-29-2010 [eluser]SPeed_FANat1c[/eluser] here you need some debugging. You mean function read($limit, $offset,$gpt='') doesn't return results? Then try echo $limit, $offset,$gpt='' in this function and see if they are correct. And so on. Pagination + URI Routing problem - El Forum - 12-29-2010 [eluser]mo2men[/eluser] ok i try i have error with $offset $offset don't echo it is NULL Howi fix this ? Pagination + URI Routing problem - El Forum - 12-29-2010 [eluser]Gerep[/eluser] Well, I'm new to it but I think in the review/index the line Code: $query = $this->review_model->read($limit,$offset); I read your code and have not found any line where you give the variable $offset any value, try to check that. Hope it really helps =) Pagination + URI Routing problem - El Forum - 12-29-2010 [eluser]InsiteFX[/eluser] Also this. Code: $routes['review/(:any)'] = "review/index/$1"; Should be like this. Code: $routes['review/:any'] = "review/index/$1"; InsiteFX Pagination + URI Routing problem - El Forum - 01-07-2011 [eluser]mobilizedesign[/eluser] isn't the class name supposed to be capitalized? Code: <?php Pagination + URI Routing problem - El Forum - 01-07-2011 [eluser]selinan[/eluser] did you call the wrong object? |