From b380292251688d066925e01393ff0c8e2a1ad55c Mon Sep 17 00:00:00 2001 From: mohrt Date: Wed, 24 Jul 2002 13:39:08 +0000 Subject: [PATCH] update QUICKSTART guide --- QUICKSTART | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/QUICKSTART b/QUICKSTART index 6b37e5f6..cbf34819 100644 --- a/QUICKSTART +++ b/QUICKSTART @@ -13,17 +13,24 @@ should understand the difference in your OS regarding file permissions. INSTALLATION ------------ +** +Note: this installation procedure is quick and dirty, it is meant to get Smarty +working just to see it work. The installation procedure from the Smarty +documentation is much more complete, setting up Smarty in a way that is +reusable for your applications and away from your web server document root. +** + Unpack the Smarty tarball. You will see some files: Smarty.class.php, -Smarty_Compiler.class.php, Config_File.class.php and a "plugins" directory. You -will need all of these files somewhere in your PHP include path, so when you call -require("Smarty.class.php") from within your application, it can find the -class. Alternatively, you can set the SMARTY_DIR constant in your application, -and Smarty will use that directory as the path to the Smarty class files. Be -sure the SMARTY_DIR path ends with a slash! +Smarty_Compiler.class.php, Config_File.class.php, debug.tpl and a "plugins" +directory. You will need all of these files somewhere in your PHP include path, +so when you call require("Smarty.class.php") from within your application, it +can find the class. Alternatively, you can define the SMARTY_DIR constant in +your application, and Smarty will use that directory as the path to the Smarty +class files. Be sure the SMARTY_DIR path ends with a slash! Now change directories somewhere inside of your web server document root. For -this guide, we'll create a directory under the document root named "Smarty", -and put all of our work here. +this quick install guide, we'll create a directory under the document root +named "Smarty", and put all of our work here. $> cd /home/htdocs $> mkdir Smarty @@ -232,7 +239,7 @@ $smarty->display("index.tpl"); --------- templates/index.tpl -------- {include file="header.tpl" title="Home Page"} {section name=people loop=$FirstName} - {$smarty.section.people.rownum} {$FirstName[people]} {$LastName[people]}
+ {$smarty.section.people.iteration} {$FirstName[people]} {$LastName[people]}
{sectionelse} There are no values to loop through. {/section}