![]() |
What is the difference between a public and a private method in codeigniter? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: What is the difference between a public and a private method in codeigniter? (/showthread.php?tid=58527) |
What is the difference between a public and a private method in codeigniter? - El Forum - 06-20-2013 [eluser]luisvallin[/eluser] What is the difference between a public and a private method in codeigniter? i need some opinions thanks!!![b][/b] What is the difference between a public and a private method in codeigniter? - El Forum - 06-20-2013 [eluser]Syllean[/eluser] http://php.net/manual/en/language.oop5.visibility.php What is the difference between a public and a private method in codeigniter? - El Forum - 06-20-2013 [eluser]jairoh_[/eluser] class extending the other class w/ public methods can access its method, unless it's private. What is the difference between a public and a private method in codeigniter? - El Forum - 06-21-2013 [eluser]rose_anne[/eluser] As we want to add some public information, which can be accessed from everywhere, we use the public keyword. While private is used in some cases if you may want certain functions hidden from public access. |