Welcome Guest, Not a member yet? Register   Sign In
[solved] Need help with a simple routing problem
#2

[eluser]Aken[/eluser]
Your route example was correct up to a point. You didn't specify a generic rule to handle only a single URL segment - you only caught three segments, two and zero.

I'd recommend setting it up like so:
Code:
$route['default_controller'] = 'site';
$route['404_override'] = '';

$route[':any/:any/:num'] = 'site/newspost';
$route[':any/:any'] = 'site/subpage';
$route[':any'] = 'site';


Messages In This Thread
[solved] Need help with a simple routing problem - by El Forum - 08-10-2011, 10:38 AM
[solved] Need help with a simple routing problem - by El Forum - 08-10-2011, 02:33 PM
[solved] Need help with a simple routing problem - by El Forum - 08-10-2011, 03:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB