CodeIgniter Forums
Using IF Within View - Good Practice? [SOLVED] - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Using IF Within View - Good Practice? [SOLVED] (/showthread.php?tid=26543)



Using IF Within View - Good Practice? [SOLVED] - El Forum - 01-16-2010

[eluser]samdoidge[/eluser]
Simple question guys

Using If statements within a View class - is this best practice, or should I do the statements in the controller?

Thanks
Sam


Using IF Within View - Good Practice? [SOLVED] - El Forum - 01-16-2010

[eluser]CroNiX[/eluser]
[quote author="samdoidge" date="1263691170"]Simple question guys

Using If statements within a View class - is this best practice, or should I do the statements in the controller?

Thanks
Sam[/quote]
Its fine.
http://ellislab.com/codeigniter/user-guide/general/alternative_php.html


Using IF Within View - Good Practice? [SOLVED] - El Forum - 01-16-2010

[eluser]samdoidge[/eluser]
Ah source as well, thanks CroNiX