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

[eluser]sehummel[/eluser]
I understand that for methods you don't want to appear in the URL, you use "_" in front of the method name. So I did that: _validate_credentials().

But when I try to call that -- form_open('home/_validate_credentials") -- I get a page not found error. I tried to call it without the underscore, too, but got the same error.

Thanks in advance for your help.
#2

[eluser]JHackamack[/eluser]
Because you've marked it as private with _ it will not be able act as a form processor. (you'd still see it in the URL since you're posting to it.) You need to post to a public function which then calls the private function.




Theme © iAndrew 2016 - Forum software by © MyBB