CodeIgniter Forums
Smarty vs Template Parser Class - 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: Smarty vs Template Parser Class (/showthread.php?tid=56243)



Smarty vs Template Parser Class - El Forum - 12-05-2012

[eluser]behnampmdg3[/eluser]
Which one is a better practice?
Smarty or Codeigniters Template Parser Class?

Thank you


Smarty vs Template Parser Class - El Forum - 12-05-2012

[eluser]Aken[/eluser]
They are completely different. CI's template parser does simple tag replacements. Smarty is a full blown template class/suite. Use whichever is appropriate for you.


Smarty vs Template Parser Class - El Forum - 12-05-2012

[eluser]solid9[/eluser]
I'll go with Smarty it's complete.
But the learning curve? it takes time.


Smarty vs Template Parser Class - El Forum - 12-05-2012

[eluser]behnampmdg3[/eluser]
I am not too crazy about template engines.

The view will always be messy no matter what.

There is always going to be dynamic code there Smile