Lab: Using the Smarty Template Engine
Install Smarty...
- Download the newest version of smarty from http://smarty.php.net
- Copy file from the "lib" folder in to your PHP "includes" directory
- can also be the root on your server
- Change the name of the "lib" folder to "smarty"
- Submit a screenshot
- Create a template .tpl file which looks like a newspaper article and has several variables:
- The <title> of the document is a variable
- the headline (large font, use <h1> tags or css) is a variable
- the author is a variable
- the document text is a variable

0 Comments:
Post a Comment
<< Home