Welcome Guest, Not a member yet? Register   Sign In
How to skip/index/ in uri-segment
#6

[eluser]CroNiX[/eluser]
Take a look at the sample code (last example) in the docs that I posted a link for. It first checks to see if the method exists and if it does it sends the request to that method (along with any parameters that were passed in segments).

They also address your specific concern by prefixing all of their methods with "process_", as to avoid that issue, so if the method passed in from the url is "login", it will see if a method named "process_login" exists.


Messages In This Thread
How to skip/index/ in uri-segment - by El Forum - 04-24-2012, 09:20 AM
How to skip/index/ in uri-segment - by El Forum - 04-24-2012, 09:59 AM
How to skip/index/ in uri-segment - by El Forum - 04-24-2012, 11:19 AM
How to skip/index/ in uri-segment - by El Forum - 04-24-2012, 11:59 AM
How to skip/index/ in uri-segment - by El Forum - 04-24-2012, 12:42 PM
How to skip/index/ in uri-segment - by El Forum - 04-24-2012, 12:45 PM
How to skip/index/ in uri-segment - by El Forum - 04-24-2012, 01:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB