cvs: smarty / QUICKSTART
| From: | Monte Ohrt | Date: | Wed, 24 Jul 2002 13:39:08 +0000 |
| Subject: | cvs: smarty / QUICKSTART | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-212@lists.php.net to get a copy of this message | ||
mohrt Wed Jul 24 09:39:08 2002 EDT
Modified files:
/smarty QUICKSTART
Log:
update QUICKSTART guide
Index: smarty/QUICKSTART
diff -u smarty/QUICKSTART:1.21 smarty/QUICKSTART:1.22
--- smarty/QUICKSTART:1.21 Fri Apr 26 10:08:17 2002
+++ smarty/QUICKSTART Wed Jul 24 09:39:08 2002
@@ -13,17 +13,24 @@
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 @@
--------- templates/index.tpl --------
{include file="header.tpl" title="Home Page"}
{section name=people loop=$FirstName}
- {$smarty.section.people.rownum} {$FirstName[people]} {$LastName[people]}<br>
+ {$smarty.section.people.iteration} {$FirstName[people]} {$LastName[people]}<br>
{sectionelse}
There are no values to loop through.
{/section}