Welcome Guest, Not a member yet? Register   Sign In
Block access to models from loaded views
#2

[eluser]TWP Marketing[/eluser]
Form the User Guide under Controllers:

Quote:...
Private Functions

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:
private function _utility()
{
// some code
}

Trying to access it via the URL, like this, will not work:
example.com/index.php/blog/_utility/
...

I'm wondering how your users could gain access to a model function from the command line or URL?
It seems not possible since the CI URL does accept a reference to model functions.

I believe this holds for the model classes as well


Messages In This Thread
Block access to models from loaded views - by El Forum - 06-08-2012, 08:36 PM
Block access to models from loaded views - by El Forum - 06-08-2012, 09:46 PM
Block access to models from loaded views - by El Forum - 06-08-2012, 11:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB