• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pagination 404, can someone help please!

#2
[eluser]Aken[/eluser]
1) Use site_url() instead of base_url() when it comes to links to your web pages. base_url() is better for static assets, or anything else that doesn't go through index.php

2) Assuming admin is a folder, and products is your controller, viewing a pagination URL such as localhost/mydomain/admin/products/15 will essentially be looking for a method in your Products controller named 15(). Which obviously doesn't exist. See the Controllers User Guide page for a good explanation of how the URI structure works.

You need to set up a route that tells the pagination URIs to point back to the index() method.

Code:
$route['admin/products/:num'] = 'admin/products';

It could be a couple other things, but that's my best guess based on your code.


Messages In This Thread
Pagination 404, can someone help please! - by El Forum - 08-07-2012, 04:16 AM
Pagination 404, can someone help please! - by El Forum - 08-07-2012, 09:45 PM
Pagination 404, can someone help please! - by El Forum - 08-08-2012, 06:34 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.