Welcome Guest, Not a member yet? Register   Sign In
[Closed] Protected Model Function Query

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.

[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...



Theme © iAndrew 2016 - Forum software by © MyBB