updated README, doc.sgm with preg_replace() parameter issue. also removed "./" from index.php file

This commit is contained in:
mohrt
2001-01-19 16:01:46 +00:00
parent 282f654e4f
commit 3ae728db09
5 changed files with 23 additions and 22 deletions

View File

@@ -162,7 +162,7 @@ $smarty->display("./templates/index.tpl");
--------- templates/header.tpl -------- --------- templates/header.tpl --------
<HTML> <HTML>
<TITLE>{$title|default:"Home Page"}</TITLE> <TITLE>{$title|default:"no title"}</TITLE>
<BODY> <BODY>
--------- templates/footer.tpl -------- --------- templates/footer.tpl --------
@@ -175,8 +175,8 @@ You can pass as many variables as you want. The included file inherits all the
current template vars, plus any that are passed to it. The passed variables are current template vars, plus any that are passed to it. The passed variables are
only available within the scope of the included file. Also notice the way the only available within the scope of the included file. Also notice the way the
$title variable is printed to the template. It uses a variable modifier called $title variable is printed to the template. It uses a variable modifier called
"default". Printing {$title|default:"Home Page"} means that if the value of "default". Printing {$title|default:"no title"} means that if the value of
$title is empty, the text "Home Page" will be printed instead of nothing. $title is empty, the text "no title" will be printed instead of nothing.
IF/ELSEIF/ELSE IF/ELSEIF/ELSE
-------------- --------------

18
README
View File

@@ -51,8 +51,8 @@ DESCRIPTION:
REQUIREMENTS: REQUIREMENTS:
Smarty requires PHP 4 or later. Smarty was developed and tested Smarty requires PHP 4.0.2 or later. Smarty was developed and tested
with 4.0.4pl1. with 4.0.4pl1. See the BUGS section below.
INSTALLATION: INSTALLATION:
@@ -70,13 +70,13 @@ INSTALLATION:
BUGS: BUGS:
There are no known bugs with Smarty, although there are some There are no known bugs with Smarty, although there are some bugs in PHP
bugs in PHP that cause problems with Smarty. preg_grep() previous that cause problems with Smarty. preg_replace() had a parameter added in
to 4.0.4 has a bug which Smarty has a built-in workaround for. 4.0.2 that is needed for Smarty. preg_grep() previous to 4.0.4 has a bug
PHP 4.0.4 has a bug with user callbacks which would cause this which Smarty has a built-in workaround for. PHP 4.0.4 has a bug with user
syntax in Smarty to crash PHP: {$varname|@modname} callbacks which would cause this syntax in Smarty to crash PHP:
Use PHP 4.0.4pl1 to fix this, or avoid using the "@" with {$varname|@modname} Use PHP 4.0.4pl1 to fix this, or avoid using the "@"
modifiers. with modifiers. To be absolutely safe, use 4.0.4pl or later with Smarty.
COPYRIGHT: COPYRIGHT:
Copyright(c) 2000,2001 ispi. All rights reserved. Copyright(c) 2000,2001 ispi. All rights reserved.

View File

@@ -1,6 +1,6 @@
<? <?
require("./Smarty.class.php"); require("Smarty.class.php");
$smarty = new Smarty; $smarty = new Smarty;

17
doc.sgm
View File

@@ -142,7 +142,7 @@
<sect1> <sect1>
<title>Requirements</title> <title>Requirements</title>
<para> <para>
Smarty requires PHP 4 or later. See the Smarty requires PHP 4.0.2 or later. See the
<link linkend="bugs">BUGS</link> section for caveats. <link linkend="bugs">BUGS</link> section for caveats.
</para> </para>
</sect1> </sect1>
@@ -1753,13 +1753,14 @@ is the first week that has at least 4 days in the current year, and with Monday
<chapter id="bugs"> <chapter id="bugs">
<title>BUGS</title> <title>BUGS</title>
<para> <para>
There are no known bugs with Smarty, although there are some There are no known bugs with Smarty, although there are some bugs in PHP
bugs in PHP that can cause problems with Smarty. preg_grep() previous that cause problems with Smarty. preg_replace() had a parameter added in
to 4.0.4 has a bug which Smarty accomodates with a built-in workaround. 4.0.2 that is needed for Smarty. preg_grep() previous to 4.0.4 has a bug
PHP 4.0.4 has a bug with user callbacks which would cause this which Smarty has a built-in workaround for. PHP 4.0.4 has a bug with user
syntax in Smarty to crash PHP: {$varname|@modname} callbacks which would cause this syntax in Smarty to crash PHP:
Use PHP 4.0.4pl1 to fix this, or avoid using the "@" with {$varname|@modname} Use PHP 4.0.4pl1 to fix this, or avoid using the "@"
<link linkend="variable.modifiers">modifiers</link>. with <link linkend="variable.modifiers">modifiers</link>. To be absolutely
safe, use 4.0.4pl or later with Smarty.
</para> </para>
</chapter> </chapter>
<chapter id="credits"> <chapter id="credits">

View File

@@ -1,6 +1,6 @@
<? <?
require("./Smarty.class.php"); require("Smarty.class.php");
$smarty = new Smarty; $smarty = new Smarty;