pagination beginner question |
[eluser]cehennem[/eluser]
Hi. I am trying to make a simple pagination test. Here is my default controller Code: <? And routes Code: $route['page/(:num)'] = "main_page/index/page/$1"; index.php is located under /test/ Now everything works ok on all pages page/1 page/2 etc. But when I go http://localhost/test/page/ (no page specified) I get 404 Not Found. I think here 'page' becomes a function name which does not exists. I want 1st page to be shown if no page specified like ..com/test/page/ I've tried to route it but couldn't success. Thanks guys. |
Messages In This Thread |
pagination beginner question - by El Forum - 11-20-2010, 03:53 PM
pagination beginner question - by El Forum - 11-20-2010, 04:13 PM
|