CodeIgniter Forums

Full Version: Smarty vs Template Parser Class
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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

Thank you

El Forum

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

El Forum

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

El Forum

[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