From 3ae728db095b3b1cc7c34c97b76a3ad8d078d93f Mon Sep 17 00:00:00 2001 From: mohrt Date: Fri, 19 Jan 2001 16:01:46 +0000 Subject: [PATCH] updated README, doc.sgm with preg_replace() parameter issue. also removed "./" from index.php file --- QUICKSTART | 6 +++--- README | 18 +++++++++--------- demo/index.php | 2 +- doc.sgm | 17 +++++++++-------- index.php | 2 +- 5 files changed, 23 insertions(+), 22 deletions(-) diff --git a/QUICKSTART b/QUICKSTART index f14db59f..2a95e4f6 100644 --- a/QUICKSTART +++ b/QUICKSTART @@ -162,7 +162,7 @@ $smarty->display("./templates/index.tpl"); --------- templates/header.tpl -------- -{$title|default:"Home Page"} +{$title|default:"no title"} --------- 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 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 -"default". Printing {$title|default:"Home Page"} means that if the value of -$title is empty, the text "Home Page" will be printed instead of nothing. +"default". Printing {$title|default:"no title"} means that if the value of +$title is empty, the text "no title" will be printed instead of nothing. IF/ELSEIF/ELSE -------------- diff --git a/README b/README index 1c5dff44..a32a27fa 100644 --- a/README +++ b/README @@ -51,8 +51,8 @@ DESCRIPTION: REQUIREMENTS: - Smarty requires PHP 4 or later. Smarty was developed and tested - with 4.0.4pl1. + Smarty requires PHP 4.0.2 or later. Smarty was developed and tested + with 4.0.4pl1. See the BUGS section below. INSTALLATION: @@ -70,13 +70,13 @@ INSTALLATION: BUGS: - There are no known bugs with Smarty, although there are some - bugs in PHP that cause problems with Smarty. preg_grep() previous - to 4.0.4 has a bug which Smarty has a built-in workaround for. - PHP 4.0.4 has a bug with user callbacks which would cause this - syntax in Smarty to crash PHP: {$varname|@modname} - Use PHP 4.0.4pl1 to fix this, or avoid using the "@" with - modifiers. + There are no known bugs with Smarty, although there are some bugs in PHP + that cause problems with Smarty. preg_replace() had a parameter added in + 4.0.2 that is needed for Smarty. preg_grep() previous to 4.0.4 has a bug + which Smarty has a built-in workaround for. PHP 4.0.4 has a bug with user + callbacks which would cause this syntax in Smarty to crash PHP: + {$varname|@modname} Use PHP 4.0.4pl1 to fix this, or avoid using the "@" + with modifiers. To be absolutely safe, use 4.0.4pl or later with Smarty. COPYRIGHT: Copyright(c) 2000,2001 ispi. All rights reserved. diff --git a/demo/index.php b/demo/index.php index 79ceaf6f..b3ab3733 100644 --- a/demo/index.php +++ b/demo/index.php @@ -1,6 +1,6 @@ Requirements - Smarty requires PHP 4 or later. See the + Smarty requires PHP 4.0.2 or later. See the BUGS section for caveats. @@ -1753,13 +1753,14 @@ is the first week that has at least 4 days in the current year, and with Monday BUGS - There are no known bugs with Smarty, although there are some - bugs in PHP that can cause problems with Smarty. preg_grep() previous - to 4.0.4 has a bug which Smarty accomodates with a built-in workaround. - PHP 4.0.4 has a bug with user callbacks which would cause this - syntax in Smarty to crash PHP: {$varname|@modname} - Use PHP 4.0.4pl1 to fix this, or avoid using the "@" with - modifiers. + There are no known bugs with Smarty, although there are some bugs in PHP + that cause problems with Smarty. preg_replace() had a parameter added in + 4.0.2 that is needed for Smarty. preg_grep() previous to 4.0.4 has a bug + which Smarty has a built-in workaround for. PHP 4.0.4 has a bug with user + callbacks which would cause this syntax in Smarty to crash PHP: + {$varname|@modname} Use PHP 4.0.4pl1 to fix this, or avoid using the "@" + with modifiers. To be absolutely + safe, use 4.0.4pl or later with Smarty. diff --git a/index.php b/index.php index 79ceaf6f..b3ab3733 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@