2. 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 from
presentation.
*) Designers can't break application code. They can mess with the templates all they want, but the
code stays intact. The code will be tighter, more secure and easier to maintain.
*) Programmers aren't messing with templates. They can go about maintaining the application code,
changing the way content is acquired, making new business rules, etc. without disturbing the
presentation layer.
3. Features of Smarty
1) Caching
2) Debugging
3) Compiling
4) 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, its
focus is on quick and painless development and
deployment of your application
4. Layer Of Website:
Presentation Logic Layer
Business Logic Layer
Data Access Layer
%%2B^2
PHP Code
HTML Code B9^2B99
(*.tpl) Smarty Engine D626%%
*.tpl.php