Dec
17
2008
The Feature's of Smarty PDF Print E-mail

smarty.jpgHariesDesign.com - Smarty is a template engine for PHP. More specifically, it facilitates a manageable way to separate application logic and content from its presentation. This is best described in a situation where the application programmer and the template designer play different roles, or in most cases are not the same person.

How do I install Smarty? - Following the quick install guide will generally get you there. There are two things you need to do - install the PHP files belonging to smarty

Some of Smarty’s features:
  • Built-in caching support
  • Arbitrary template sources
  • Custom cache handling functions
  • Plugin architecture
  • It is smart about recompiling only the template files that have changed.
  • You can make custom functions and custom variable modifiers, so the template language is extremely extensible.
  • Configurable template delimiter tag syntax, so you can use {}, {{}}, , etc.
  • The if/elseif/else/endif constructs are passed to the PHP parser, so the {if …} expression syntax can be as simple or as
  • complex as you like.
  • It is extremely fast.
  • It is efficient since the PHP parser does the dirty work.
  • No template parsing overhead, only compiles once.
  • Unlimited nesting of sections, ifs, etc. allowed.
  • It is possible to embed PHP code right in your template files, although this may not be needed (nor recommended) since
  • the engine is so customizable.
 
< Prev   Next >

Gallery Photography

Login