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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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