mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 09:54:27 +02:00
updated README, doc.sgm with preg_replace() parameter issue. also removed "./" from index.php file
This commit is contained in:
@@ -162,7 +162,7 @@ $smarty->display("./templates/index.tpl");
|
||||
|
||||
--------- templates/header.tpl --------
|
||||
<HTML>
|
||||
<TITLE>{$title|default:"Home Page"}</TITLE>
|
||||
<TITLE>{$title|default:"no title"}</TITLE>
|
||||
<BODY>
|
||||
|
||||
--------- 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
|
||||
--------------
|
||||
|
18
README
18
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.
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?
|
||||
|
||||
require("./Smarty.class.php");
|
||||
require("Smarty.class.php");
|
||||
|
||||
$smarty = new Smarty;
|
||||
|
||||
|
17
doc.sgm
17
doc.sgm
@@ -142,7 +142,7 @@
|
||||
<sect1>
|
||||
<title>Requirements</title>
|
||||
<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.
|
||||
</para>
|
||||
</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">
|
||||
<title>BUGS</title>
|
||||
<para>
|
||||
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
|
||||
<link linkend="variable.modifiers">modifiers</link>.
|
||||
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 <link linkend="variable.modifiers">modifiers</link>. To be absolutely
|
||||
safe, use 4.0.4pl or later with Smarty.
|
||||
</para>
|
||||
</chapter>
|
||||
<chapter id="credits">
|
||||
|
Reference in New Issue
Block a user