CodeIgniter Forums
[Closed] Protected Model Function Query - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: [Closed] Protected Model Function Query (/thread-60570.html)



[Closed] Protected Model Function Query - El Forum - 04-25-2014

[eluser]riwakawd[/eluser]
Hello I would like to know where it is best to use a protected function in my user model.

protected function validate($username, $password, $email_address)

function getSession()

protected function getSessoion()


I have my own ci lib which hashes password with salt but not sure if in my model to use protected function.


[Closed] Protected Model Function Query - El Forum - 04-26-2014

[eluser]Tim Brownlaw[/eluser]
And what happened when you "tried it"?

You need to understand what Public, Protected and Private means in regards to properties and methods inside classes.
Look it up in Google and have a read!

I had gone over this with you in another Forum... DC's...




[Closed] Protected Model Function Query - El Forum - 04-29-2014

[eluser]InsiteFX[/eluser]
LOL