Welcome Guest, Not a member yet? Register   Sign In
Private function
#1

[eluser]Perkin5[/eluser]
I am developing a blog and I have a controller called blogin associated with a form view.

At the moment, a successful login calls a method admin in another controller called blogadmin. The code is:

Code:
redirect('blogadmin/admin');

and that works fine. However, it's possible to reach that method by entering the address as a url and I want to prevent that. So I rename the admin method as _admin as I understand that this makes it a private method and not available via url.

I then change my code to:

Code:
redirect('blogadmin/_admin');

and I get a 404. Why doesn't it work?


Messages In This Thread
Private function - by El Forum - 07-08-2011, 05:04 AM
Private function - by El Forum - 07-08-2011, 05:07 AM
Private function - by El Forum - 07-08-2011, 05:16 AM
Private function - by El Forum - 07-08-2011, 05:38 AM
Private function - by El Forum - 07-08-2011, 06:54 AM
Private function - by El Forum - 07-08-2011, 07:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB