CodeIgniter Forums
Template Engine, Should We Use Or Not? - 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: Template Engine, Should We Use Or Not? (/showthread.php?tid=38965)



Template Engine, Should We Use Or Not? - El Forum - 02-24-2011

[eluser]rana[/eluser]
Hi, in the codeigniter documentation, it was mentioned that, it does't require a template engine. And recommended not to use one. Now, my question is, which is actually better to do? use or not to use?

Regards


Template Engine, Should We Use Or Not? - El Forum - 02-24-2011

[eluser]grisha[/eluser]
It is. Saves all the $this->load->view's for headers and footers that are the most common lines in controllers. Using a template library you follow the basic rule to put common code fragments into classes and functions.