Why templating engine: smarty or phptemplate, any other?
I'm trying to compare between the different template engines for PHP. The 2 that come up are smarty and PHPtemplate. How do I decide which is better for me.. These are some of the que开发者_StackOverflow社区stions I'm trying to find answers to
- What are some of the strengths and weaknesses of these 2
- Is one better than the other in some cases or for some types of projects
- Which is easier to learn and work with (flexible)
- Are there any good additional template engines for PHP I'm missing
Dunno what do you mean under PHPtemplate but assuming Drupal's native PHP template system.
- Is one better than the other in some cases or for some types of projects
in case you gonna let users edit templates, both are bad. Go for something XTemplate-like.
Otherwise both PHP and PHP written in PHP (Smarty) are all right
- Which is easier to learn and work with (flexible)
PHP for sure
- Are there any good additional template engines for PHP I'm missing
A whole lot.
精彩评论