routing and pagination problem |
[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
[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. |
Welcome Guest, Not a member yet? Register Sign In |