Welcome Guest, Not a member yet? Register   Sign In
program redirect of links
#6

(10-01-2015, 07:14 AM)mwhitney Wrote: You could also use a _remap() function in your controller to lookup the correct information and perform the redirect.

Not really in this case. If you visit id/2 and you do not have a controller named id and method named 2, the router will not know to which controller to route to, and fail to hit your _remap() in your base controller.
Reply


Messages In This Thread
program redirect of links - by Andryshok - 09-30-2015, 11:25 PM
RE: program redirect of links - by InsiteFX - 10-01-2015, 03:48 AM
RE: program redirect of links - by Andryshok - 10-01-2015, 04:01 AM
RE: program redirect of links - by slax0r - 10-01-2015, 05:58 AM
RE: program redirect of links - by mwhitney - 10-01-2015, 07:14 AM
RE: program redirect of links - by slax0r - 10-01-2015, 11:06 PM
RE: program redirect of links - by mwhitney - 10-02-2015, 09:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB