public function |
Hello,
I have a quick question regarding the function of writing "public" in the beginning of function. What is the difference between writing: models/Mpages.php PHP Code: public function login() {}
" If I looks more intelligence please increase my reputation."
It's the same. The first one is more explicit and you should use it for better clarity.
For more info: http://stackoverflow.com/questions/43615...-protected
in writing inside the class you have to specify whether it is public, static, or private.
God Bless CI Contributors
![]() |
Welcome Guest, Not a member yet? Register Sign In |