• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Should I start my model methods with an underscore?

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

#2
[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).


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.