mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
update everything to 1.3.1
This commit is contained in:
3
BUGS
3
BUGS
@@ -5,7 +5,8 @@ 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
|
cause this syntax in Smarty to crash PHP: {$varname|@modname} Use PHP 4.0.4pl1
|
||||||
to fix this, or avoid using the "@" with modifiers. if you are passing variables
|
to fix this, or avoid using the "@" with modifiers. if you are passing variables
|
||||||
to {include} statements, you will need PHP 4.0.4 or later, which requires the
|
to {include} statements, you will need PHP 4.0.4 or later, which requires the
|
||||||
use of get_defined_vars() function.
|
use of get_defined_vars() function. Some versions of Windows 2k have a problem
|
||||||
|
with flock(). Comment out the flock() command in _write_file to get around this.
|
||||||
|
|
||||||
To be absolutely safe, use 4.0.4pl or later with Smarty.
|
To be absolutely safe, use 4.0.4pl or later with Smarty.
|
||||||
|
|
||||||
|
4
INSTALL
4
INSTALL
@@ -11,8 +11,8 @@ libraries is included in your php include_path. Unix users check
|
|||||||
|
|
||||||
INSTALLATION:
|
INSTALLATION:
|
||||||
|
|
||||||
* copy the Smarty.class.php, Smarty.addons.php and Config_File.class.php
|
* copy the Smarty.class.php, Smarty.addons.php, Smarty_Compile.class.php and
|
||||||
scripts to a directory that is in your PHP include_path.
|
Config_File.class.php scripts to a directory that is in your PHP include_path.
|
||||||
|
|
||||||
* in the same directory as your php application, create a "templates"
|
* in the same directory as your php application, create a "templates"
|
||||||
directory, "configs" directory and a "templates_c" directory. Be sure the
|
directory, "configs" directory and a "templates_c" directory. Be sure the
|
||||||
|
2
NEWS
2
NEWS
@@ -1,3 +1,5 @@
|
|||||||
|
Version 1.3.1
|
||||||
|
-------------
|
||||||
- document first, last, index_prev, index_next (Monte)
|
- document first, last, index_prev, index_next (Monte)
|
||||||
- added 'first' and 'last' section properties. (Andrei)
|
- added 'first' and 'last' section properties. (Andrei)
|
||||||
- split out compiling code to separate class for faster template execution
|
- split out compiling code to separate class for faster template execution
|
||||||
|
@@ -13,10 +13,10 @@ understand the difference in your OS regarding file permissions.
|
|||||||
INSTALLATION
|
INSTALLATION
|
||||||
------------
|
------------
|
||||||
|
|
||||||
Unpack the Smarty tarball. You will see three class files: Smarty.class.php,
|
Unpack the Smarty tarball. You will see fou: class files: Smarty.class.php,
|
||||||
Smarty.addons.php and Config_File.class.php. You will need to have all three of
|
Smarty.addons.php, Smarty_Compiler.class.php and Config_File.class.php. You will
|
||||||
these files somewhere in your PHP include path, so when you call
|
need to have all three of these files somewhere in your PHP include path, so when
|
||||||
require("Smarty.class.php") from within your application, it can find the
|
you call require("Smarty.class.php") from within your application, it can find the
|
||||||
class.
|
class.
|
||||||
|
|
||||||
Smarty uses the PEAR libraries for some of its error handling routines. PEAR
|
Smarty uses the PEAR libraries for some of its error handling routines. PEAR
|
||||||
|
2
README
2
README
@@ -2,7 +2,7 @@ NAME:
|
|||||||
|
|
||||||
Smarty - the PHP compiling template engine
|
Smarty - the PHP compiling template engine
|
||||||
|
|
||||||
VERSION: 1.3.0
|
VERSION: 1.3.1
|
||||||
|
|
||||||
AUTHORS:
|
AUTHORS:
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* File: Smarty.addons.php
|
* File: Smarty.addons.php
|
||||||
* Author: Monte Ohrt <monte@ispi.net>
|
* Author: Monte Ohrt <monte@ispi.net>
|
||||||
* Andrei Zmievski <andrei@ispi.net>
|
* Andrei Zmievski <andrei@ispi.net>
|
||||||
* Version: 1.3.0
|
* Version: 1.3.1
|
||||||
* Copyright: 2001 ispi of Lincoln, Inc.
|
* Copyright: 2001 ispi of Lincoln, Inc.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* Author: Monte Ohrt <monte@ispi.net>
|
* Author: Monte Ohrt <monte@ispi.net>
|
||||||
* Andrei Zmievski <andrei@ispi.net>
|
* Andrei Zmievski <andrei@ispi.net>
|
||||||
*
|
*
|
||||||
* Version: 1.3.0
|
* Version: 1.3.1
|
||||||
* Copyright: 2001 ispi of Lincoln, Inc.
|
* Copyright: 2001 ispi of Lincoln, Inc.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
|
@@ -1,5 +1,43 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Project: Smarty: the PHP compiling template engine
|
||||||
|
* File: Smarty_Compiler.class.php
|
||||||
|
* Author: Monte Ohrt <monte@ispi.net>
|
||||||
|
* Andrei Zmievski <andrei@ispi.net>
|
||||||
|
*
|
||||||
|
* Version: 1.3.1
|
||||||
|
* Copyright: 2001 ispi of Lincoln, Inc.
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*
|
||||||
|
* You may contact the authors of Smarty by e-mail at:
|
||||||
|
* monte@ispi.net
|
||||||
|
* andrei@ispi.net
|
||||||
|
*
|
||||||
|
* Or, write to:
|
||||||
|
* Monte Ohrt
|
||||||
|
* CTO, ispi
|
||||||
|
* 237 S. 70th suite 220
|
||||||
|
* Lincoln, NE 68510
|
||||||
|
*
|
||||||
|
* The latest version of Smarty can be obtained from:
|
||||||
|
* http://www.phpinsider.com/
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
class Smarty_Compiler extends Smarty {
|
class Smarty_Compiler extends Smarty {
|
||||||
|
|
||||||
// internal vars
|
// internal vars
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
* Author: Monte Ohrt <monte@ispi.net>
|
* Author: Monte Ohrt <monte@ispi.net>
|
||||||
* Andrei Zmievski <andrei@ispi.net>
|
* Andrei Zmievski <andrei@ispi.net>
|
||||||
*
|
*
|
||||||
* Version: 1.3.0
|
* Version: 1.3.1
|
||||||
* Copyright: 2001 ispi of Lincoln, Inc.
|
* Copyright: 2001 ispi of Lincoln, Inc.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
|
@@ -1,5 +1,43 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Project: Smarty: the PHP compiling template engine
|
||||||
|
* File: Smarty_Compiler.class.php
|
||||||
|
* Author: Monte Ohrt <monte@ispi.net>
|
||||||
|
* Andrei Zmievski <andrei@ispi.net>
|
||||||
|
*
|
||||||
|
* Version: 1.3.1
|
||||||
|
* Copyright: 2001 ispi of Lincoln, Inc.
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*
|
||||||
|
* You may contact the authors of Smarty by e-mail at:
|
||||||
|
* monte@ispi.net
|
||||||
|
* andrei@ispi.net
|
||||||
|
*
|
||||||
|
* Or, write to:
|
||||||
|
* Monte Ohrt
|
||||||
|
* CTO, ispi
|
||||||
|
* 237 S. 70th suite 220
|
||||||
|
* Lincoln, NE 68510
|
||||||
|
*
|
||||||
|
* The latest version of Smarty can be obtained from:
|
||||||
|
* http://www.phpinsider.com/
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
class Smarty_Compiler extends Smarty {
|
class Smarty_Compiler extends Smarty {
|
||||||
|
|
||||||
// internal vars
|
// internal vars
|
||||||
|
Reference in New Issue
Block a user