Smarty generates web content by the placement of special Smarty tags within a document. These tags are processed and substituted with other code.
Tags are directives for Smarty that are enclosed by template delimiters. These directives can be variables, denoted by a dollar sign ($), functions, or logical or control flow statements. Smarty allows PHP programmers to define functions that can be accessed using Smarty tags.
Smarty is intended to simplify compartmentalization, allowing the presentation of a web page to change separately from the back-end. Ideally, this eases the costs and efforts associated with software maintenance. Under successful application of this development strategy, designers are shielded from the back-end coding, and PHP programmers are shielded from the presentation coding.
Smarty supports several high-level template programming features, including:
along with other features. There are other template engines that also support these features. Smarty templates are often incorporated into existing PHP web applications to some extent. More often it is used where a web application or a website has a theme system built into it, where the templates can be changed from theme to theme.
In the business logic code you can configure Smarty to use this template:
Yakimaw-Yakimuh Debate Finally Settled ; (but Both of You Totally Forgot the Newbie's Go-To Pronunciation: Yakeema!)
Jul 11, 2013; Dear Crabigail,I don't believe I know you well enough to call you "Crabby"; come to think about it, I don't know you at all. So...