Smarty engine is an awesome tool, it saves your design development time.
Smarty is a highly popular PHP template engine when it comes to separating application logic from presentation. While developing a robust website PHP Smarty brings a unique set of functionalities such as it facilitating the separation of application logic from the presentation (HTML/CSS). This means the developer and designers can work independently.
Separates the presentation logic from business logic ( Code and design are seperated)
-If we use core PHP with mixed with HTML then mess to manage.
-No PHP knowledge is required to manage smarty templates.
-Web designer and PHP developers can easily work and don’t blame each other. ( When they develop a big websites )
Smarty offers tools
– granular data caching
– template inheritance
– functional sandboxing to name a few
Some of the functions of these smarty web templates are great but some areas of PHP functions because PHP can’t be used directly in a template.
The output is instant and sometimes it resulting to slow processing sped.
Templates writers need to learn some simple PHP code for enabling this templates.
Smarty results in a misunderstanding of presentation code sometimes, primarily it depends on developer/coder who is developing the project.
There are some difficulties like project use to move sometimes to template cache folder- which is not found in the developing process.