Welcome Guest, Not a member yet? Register   Sign In
Routes, how to handle empty strings? [SOLVED, with hack]
#4

[eluser]xzela[/eluser]
So, after some experimentation, I may have a quick hack which solves the problem.

If I change my routing rules to this:

Code:
$route['pages/cake-types'] = 'pages/cake_types/'; //default, non-specific cake page
$route['pages/cake-types/(:any)'] = 'pages/cake_types/$1'; //specific cake page

So far, this works.

Thanks for the help everyone.


Messages In This Thread
Routes, how to handle empty strings? [SOLVED, with hack] - by El Forum - 07-23-2010, 12:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB