Welcome Guest, Not a member yet? Register   Sign In
how to protect a controller function accessing by URL
#2

[eluser]danmontgomery[/eluser]
This is covered in the user guide.

Quote:In some cases you may want certain functions hidden from public access. To make a function private, simply add an underscore as the name prefix and it will not be served via a URL request. For example, if you were to have a function like this:

Code:
function _utility()
{
  // some code
}
Trying to access it via the URL, like this, will not work:

Code:
example.com/index.php/blog/_utility/


Messages In This Thread
how to protect a controller function accessing by URL - by El Forum - 08-19-2010, 12:00 PM
how to protect a controller function accessing by URL - by El Forum - 08-19-2010, 12:07 PM
how to protect a controller function accessing by URL - by El Forum - 08-19-2010, 12:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB