Welcome Guest, Not a member yet? Register   Sign In
Remove controller name for affiliate system
#11

[eluser]Rok Biderman[/eluser]
Well, of course... If you use the first parameter routed directly to affiliates, you can't really expect every other route to be automagically recognized. At least i don't think it's possible with routes.php.
#12

[eluser]Stoney[/eluser]
You can route every request to one master controller, where you will query the affiliates, and if you find one, you can redirect('affiliates/'.$query_row->id)...
If there is no affiliates found, you can simply redirect it to the existing controller.

I have made language specific (non existing) controllers this way.




Theme © iAndrew 2016 - Forum software by © MyBB