Welcome Guest, Not a member yet? Register   Sign In
Restricting access to specific functions in controllers
#1

[eluser]sjmiller85[/eluser]
A while back on a project since gone and over with I recall being able to restrict access to specific functions within my controller. For instance, I would create callback functions for form validation. Obviously, these functions serve no other purpose than to be called during the form validation, so having users type in the url to the function (ie base_url/controller/callback_function) is not needed and if at all possible, I'd like to prevent this.

I seem to remember being able to add an access modifier to the function to prevent direct access to those functions, but I cannot seem to replicate this. Can someone please enlighten me on the best practices of preventing direct browser access to specific functions?


Messages In This Thread
Restricting access to specific functions in controllers - by El Forum - 11-10-2009, 12:33 AM
Restricting access to specific functions in controllers - by El Forum - 11-10-2009, 12:47 AM
Restricting access to specific functions in controllers - by El Forum - 11-10-2009, 12:50 AM
Restricting access to specific functions in controllers - by El Forum - 11-10-2009, 12:51 AM
Restricting access to specific functions in controllers - by El Forum - 11-10-2009, 02:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB