CodeIgniter Forums
What should not be used in a view ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: What should not be used in a view ? (/showthread.php?tid=41422)



What should not be used in a view ? - El Forum - 05-07-2011

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


What should not be used in a view ? - El Forum - 05-09-2011

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