CodeIgniter Forums
Should I start my model methods with an underscore? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Should I start my model methods with an underscore? (/showthread.php?tid=9350)



Should I start my model methods with an underscore? - El Forum - 06-22-2008

[eluser]EEssam[/eluser]
Hi,

I'm wondering if I should start my private model methods with an underscore, or it's already hidden?

Please advise.


Should I start my model methods with an underscore? - El Forum - 06-22-2008

[eluser]sophistry[/eluser]
already hidden. controllers hold the only methods "exposed" and "hidden" using the initial underscore. models are only accessed through controllers (and views if you prefer that sort of thing).