Welcome Guest, Not a member yet? Register   Sign In
Routes Problem
#1

[eluser]Unknown[/eluser]
Hi!

I have simple routes problem that I can't figure out how to solve.

Here is my routes config.

Code:
$route['search/(:any)'] = 'playlists/search/$1';
$route['search/(:any)/page/(:num)'] = 'playlists/search/$1';

What I need to accomplish is that the pagination only accepts numbers. That's what the last route is for, but it won't work.

Exemple:
exemple.com/search/hello/page/2/

It works but if you manipulate the URL like this for example:
exemple.com/search/hello/page/asd/

You get an error instead of the 404 page.

Someone that can help me with this?

Thanks!


Messages In This Thread
Routes Problem - by El Forum - 09-07-2012, 06:51 AM
Routes Problem - by El Forum - 09-07-2012, 06:54 AM
Routes Problem - by El Forum - 09-07-2012, 07:08 AM
Routes Problem - by El Forum - 09-07-2012, 03:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB