Welcome Guest, Not a member yet? Register   Sign In
What should not be used in a view ?
#1

[eluser]Rushino[/eluser]
Hello,

Would like to know if there anything that shouldn't be used in a View ?

Also.. it is okay to call librairies in an helper ?

Just wanna be sure.

Thanks.
#2

[eluser]toopay[/eluser]
Related with MVC approach, the view should be the final output. Thats means, avoid any databasing or core process, is a good practice (or even neccesary). This have one purpose, to make your app manageable by clear separated logic : Model for database modelling, COntroller for I/O processing and View generally just for templating stuff.

Thats the guideline, for me. So, as long as you didnt feel that your app is out of your control, or hard to manage, then you're fine.




Theme © iAndrew 2016 - Forum software by © MyBB