Welcome Guest, Not a member yet? Register   Sign In
dynamic routing
#2

[eluser]PhilTem[/eluser]
It doesn't work because routing works with "first come first serve" i.e. the first matched route will be used. You'd have to make something like a bootstrap-router, which will process your requests any further with this route

Code:
$route['(:any)'] = "router/bootstrap/$1";

This way your router-controller and bootstrap-method will be called with the whole URI-string as arguments. You can then do your processing of requests by checking e.g. the first URI-segment and including the appropriate file.


Messages In This Thread
dynamic routing - by El Forum - 04-16-2012, 01:05 PM
dynamic routing - by El Forum - 04-17-2012, 12:51 AM
dynamic routing - by El Forum - 04-17-2012, 12:58 AM
dynamic routing - by El Forum - 04-20-2012, 08:51 AM
dynamic routing - by El Forum - 04-23-2012, 09:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB