01-14-2008, 08:01 PM
|
#9 (permalink)
|
|
The Acquainted
Join Date: Sep 2007
Location: Leeds, UK
Posts: 141
Thanks: 6
|
Basically you have your PHP and your HTML separate from each other, which makes it easier to edit.
You make your HTML file, and a lot of people give it the file extention .tpl, which stands for 'template', which is what it is.
Then in the PHP file, you would do something like this to show the HTML page via the PHP page.
PHP Code:
<?php include('location/to/Smarty.inc.php'); $smarty = new Smarty;
$smarty->display('temp_file.tpl'); ?>
But I recommend reading the documentation, it is very helpful.
__________________
Not quite a n00b...
|
|
|
|