Pagination class issue |
[eluser]Christophe28[/eluser]
Hello, For some strange, but probably obvious reason the pagination doesn't work in my application. This is the code I use in the controller: Code: $this->load->library('pagination'); This is the code I use in the view: Code: <?php echo $this->pagination->create_links(); ?> When I surf to http://www.myurl.com/photos/ the pagination numbers are visible on the page, but then, when I click on of the numbers, the URL changes to http://www.myurl.com/photos/64/ and I get a 404 ... Doesn't anybody know what I do wrong :-( Thx!
[eluser]Christophe28[/eluser]
This gives the same result. Any other suggestions?
[eluser]OliverHR[/eluser]
Mmm. to sounds like a Rewrite rule issue, but I never had to work with NGinx.
[eluser]Christophe28[/eluser]
Apparently you have to set the routes to use the pagination the way I use it. I had to paste this in the routes.php file: $route['photos/(:num)'] = 'photos'; |
Welcome Guest, Not a member yet? Register Sign In |