- Caching is somewhat inconvenient, only within templates, with restrictions to template inheritance
- No output cache
- practically plain PHP, thus no convenience whatsoever.
- regular PHP errors, warnings, notices
- no caching
- no security
- reads TPLs only from file system
- No output cache
Parse error: syntax error, unexpected '}' in /path/foo.72140ddaa86134d7ec0ad5ad0c1b54f5.rtpl.php on line 10
- no auto escaping, mentioned as of v3
- modifiers
{$foo|modifier}
may take only a single argument{$foo|modifier:1}
is ok,{$foo|modifier:1:2}
is not - no default modifiers (other than what php-core-functions can be used directly) supplied
- overwriting variables key, value, counter
- Missing convenience $foo.[first|last|total|…]
- nested loops have no access to outer loop's data (unless mapped explicitly)
- only loops arrays (no ArrayObject, ArrayAccess, Iterator, …)
{include}
does not accept variables to set for the included template- no template inheritance
- can read template source only from file system
- can cache only on file system
- has no race condition protection whatsoever
- Output-Cache for complete output
- apparently sub-templates may have individual cache-timeouts
- no function white-list (only black-list)
- black_list doesn't differentiate between
{function="foo"}
and{$foo}
.
PHP Framework MVC Benchmark PHP Frameworks PHP frameworks comparison
- Symfony ("native")
- Kohana
- CodeIgniter
- Zend Framework
- Yii Framework
- CakePHP
DRUPAL http://drupal.org/project/theme%20engines http://drupal.org/project/smarty
Wordpress http://wordpress.org/extend/plugins/smarty-for-wordpress/ www.dylanmccall.com/blog/2011/06/17/my-new-wordpress-blog-and-smarty/ http://inchoo.net/wordpress/twig-wordpress-part2/ http://wordpress.org/extend/plugins/ap-twig-bridge/