Welcome Guest, Not a member yet? Register   Sign In
How do I prevent direct controller function access?
#3

[eluser]PhilTem[/eluser]
That's all kinda unnecessary, you can just add an underscore in front of the function name and it will become inaccessible from the URI. That's one thing. Furthermore, what I guess is also what you want to have, you may want to check for permissions, i.e. implement an authentication and authorization library/module/whatever, that will be taking care of checking permissions.

@Kraig What do you do when you have hundreds of such methods? Do you add one line per method to the routes file? Isn't that kinda over-bloating everything? #justaskin Wink


Messages In This Thread
How do I prevent direct controller function access? - by El Forum - 12-20-2012, 10:16 PM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 04:15 AM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 06:18 AM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 06:21 AM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 07:54 AM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 08:08 AM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 08:59 PM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 09:23 PM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 09:51 PM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 09:57 PM
How do I prevent direct controller function access? - by El Forum - 12-21-2012, 10:02 PM
How do I prevent direct controller function access? - by El Forum - 12-22-2012, 01:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB