What is Smarty?Smarty is a web template system written in PHP Although Smarty is known as a "Template Engine" ,The Goal of Smarty?One of Smartys primary design goals is to facilitate the separation of application code frompresentation.*) Designers cant break application code. They can mess with the templates all they want, but thecode stays intact. The code will be tighter, more secure and easier to maintain.*) Programmers arent messing with templates. They can go about maintaining the application code,changing the way content is acquired, making new business rules, etc. without disturbing thepresentation layer.
Features of Smarty1) Caching2) Debugging3) Compiling4) Plugins,....Is Smarty right for me?Smarty is not a simple tag-replacing template engine.Although it can be used for such a simple purpose, itsfocus is on quick and painless development anddeployment of your application
Layer Of Website: Presentation Logic Layer Business Logic Layer Data Access Layer %%2B^2PHP Code HTML Code B9^2B99 (*.tpl) Smarty Engine D626%% *.tpl.php