Welcome Guest, Not a member yet? Register   Sign In
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).




Theme © iAndrew 2016 - Forum software by © MyBB