routing and pagination problem - 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: routing and pagination problem (/showthread.php?tid=34202) |
routing and pagination problem - El Forum - 09-22-2010 [eluser]LeonLanford[/eluser] Hi, I'm new to codeigniter. I've read URI Routing manual and this thread. I have the same problem like that thread, I want to remove 'index' from the URI (http://localhost/igniter/hello/index/10) to (http://localhost/igniter/hello/10). URI routing doesn't work for me so I use _remap function, but it made pagination doesn't works. If I press page 2, it keeps bold at page 1. My question: Is there something I need to do to activate the routing or fix the pagination when using _remap function? I already tried to change Code: $config['uri_protocol'] = "AUTO"; I also already change index_page to blank Code: $config['index_page'] = ""; htaccess code Code: RewriteEngine on Here's the controller code Code: <?php Thanks routing and pagination problem - El Forum - 09-22-2010 [eluser]LeonLanford[/eluser] I solved the pagination problem by looking at this thread. I also already solved the routing, I put the route at config/routes.php.. Is there some way I can put the route in the controller? routing and pagination problem - El Forum - 12-03-2010 [eluser]Cesar Kohl[/eluser] I had the same problem. The solution is surprisingly simple: Code: $config['uri_segment'] = 2; .. in the pagination config file I hope you created. |