mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 02:14:26 +02:00
Remove PEAR notes.
This commit is contained in:
5
BUGS
5
BUGS
@@ -9,8 +9,3 @@ 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.
|
||||
|
||||
Also be sure to include the path to the PEAR libraries in your php
|
||||
include_path. Config_file.class.php uses the PEAR library for its error
|
||||
handling routines. PEAR comes with the PHP distribution. Unix users check
|
||||
/usr/local/lib/php, windows users check C:/php/pear.
|
||||
|
23
FAQ
23
FAQ
@@ -21,9 +21,6 @@ Q: Smarty doesn't work.
|
||||
Q: I get the following error when running Smarty:
|
||||
Warning: Wrong parameter count for preg_replace() in
|
||||
Smarty.class.php on line 371
|
||||
Q: I get the following error when running Smarty:
|
||||
Fatal error: Failed opening required 'PEAR.php'
|
||||
(include_path='') in Config_File.class.php on line 3
|
||||
Q: I get this error when passing variables to {include}:
|
||||
Fatal error: Call to undefined function: get_defined_vars() in
|
||||
/path/to/Smarty/templates_c/index.tpl.php on line 8
|
||||
@@ -34,8 +31,6 @@ Q: I'm running Windows 2000 and I get blank content. My compiled PHP files are
|
||||
also zero length.
|
||||
Q: The template goes into an infinite loop when I include included templates
|
||||
that pass local variables
|
||||
Q: My ISP did not setup the PEAR repository, nor will they set it up. How do I
|
||||
make Smarty run without it?
|
||||
Q: Javascript is causing Smarty errors in my templates.
|
||||
|
||||
MISC
|
||||
@@ -143,18 +138,6 @@ A: preg_replace had a parameter added in PHP 4.0.2 that Smarty
|
||||
requires. Upgrade to at least 4.0.4pl to fix all known PHP issues with
|
||||
Smarty.
|
||||
|
||||
Q: I get the following error when running Smarty:
|
||||
Fatal error: Failed opening required 'PEAR.php'
|
||||
(include_path='') in Config_File.class.php on line 3
|
||||
A: Smarty uses the PEAR libraries for some of its error handling routines.
|
||||
PEAR libraries come with the distribution of PHP. Be sure that the path to
|
||||
these libraries is included in your php include_path. Unix users check
|
||||
/usr/local/lib/php. Windows users check C:\php\pear. You may also need to
|
||||
change the filename from PEAR.php.in to PEAR.php (windows distribution)
|
||||
Example entry in php.ini:
|
||||
(unix) include_path=".:/usr/local/lib/php"
|
||||
(windows) include_path=".;\php\pear"
|
||||
|
||||
Q: I get this error when passing variables to {include}:
|
||||
Fatal error: Call to undefined function: get_defined_vars() in
|
||||
/path/to/Smarty/templates_c/index.tpl.php on line 8
|
||||
@@ -190,12 +173,6 @@ Q: The template goes into an infinite loop when I include included templates
|
||||
that pass local variables
|
||||
A: This was fixed in 1.3.2 (new global attribute)
|
||||
|
||||
Q: My ISP did not setup the PEAR repository, nor will they set it up. How do I
|
||||
make Smarty run without it?
|
||||
A: The easiest thing to do is grab all of PEAR and install it locally for your
|
||||
own use. There's nothing that says PEAR must be installed in its default
|
||||
directory. There won't be a version of Smarty that runs without PEAR.
|
||||
|
||||
Q: Javascript is causing Smarty errors in my templates.
|
||||
A: Surround your javascript with {literal}{/literal} tags. See the docs.
|
||||
|
||||
|
5
INSTALL
5
INSTALL
@@ -4,11 +4,6 @@ Smarty requires PHP 4.0.4pl1 or later to fix all known problems Smarty has with
|
||||
PHP. Smarty was developed and tested with 4.0.4pl1. See the BUGS file for more
|
||||
info.
|
||||
|
||||
Smarty uses the PEAR libraries for some of its error handling routines. PEAR
|
||||
libraries come with the distribution of PHP. Be sure that the path to these
|
||||
libraries is included in your php include_path. Unix users check
|
||||
/usr/local/lib/php. Windows users check C:/php/pear.
|
||||
|
||||
INSTALLATION:
|
||||
|
||||
* copy the Smarty.class.php, Smarty.addons.php, Smarty_Compile.class.php and
|
||||
|
12
QUICKSTART
12
QUICKSTART
@@ -21,11 +21,6 @@ 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 path ends with a slash!
|
||||
|
||||
Smarty uses the PEAR libraries for some of its error handling routines. PEAR
|
||||
libraries come with the distribution of PHP. Be sure that the path to these
|
||||
libraries is included in your php include_path. Unix users check
|
||||
/usr/local/lib/php. Windows users check C:/php/pear.
|
||||
|
||||
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.
|
||||
@@ -61,13 +56,6 @@ drwxrwxr-x 2 user group 512 Jan 18 14:18 configs/
|
||||
drwxrwxr-x 2 user group 512 Jan 18 14:18 templates/
|
||||
drwxrwxrwx 2 user group 512 Jan 18 14:18 templates_c/
|
||||
|
||||
Make sure the current directory and the path to PEAR.php are in your
|
||||
include_path. Example php.ini entries:
|
||||
(unix) include_path=".:/usr/local/lib/php"
|
||||
(windows) include_path=".;\php\pear"
|
||||
Also, windows users may have to change the filename from PEAR.php.in
|
||||
to PEAR.php (named like this in some distributions?)
|
||||
|
||||
Now we need to create two files, index.php and templates/index.tpl. index.php
|
||||
is the file that we will be calling from our web browser. index.tpl is the file
|
||||
that Smarty will use as its template file. (Smarty template files are never
|
||||
|
@@ -1,13 +1,23 @@
|
||||
2.0
|
||||
---
|
||||
|
||||
This release removes PEAR dependency -- it was mainly a consequence of using
|
||||
Config_File class which was originally written with PEAR in mind but was
|
||||
never integrated into it.
|
||||
|
||||
|
||||
1.5.2
|
||||
-----
|
||||
|
||||
Mostly bug fixes, added a default template resource handler.
|
||||
|
||||
|
||||
1.5.1
|
||||
-----
|
||||
|
||||
Critical bug fix release. If you use caching, you'll need to upgrade.
|
||||
|
||||
|
||||
1.5.0
|
||||
-----
|
||||
|
||||
@@ -19,6 +29,7 @@ variable instead of displayed (assign attribute). Cache files can now be
|
||||
controlled with a custom function as an alternative to the built-in file based
|
||||
method. Many code cleanups and bug fixed went into this release as well.
|
||||
|
||||
|
||||
1.4.6
|
||||
-----
|
||||
|
||||
@@ -38,6 +49,7 @@ The debug console now has script timing and array values printed. You MUST
|
||||
update your debug.tpl file with this version of Smarty. Also, the new debug.tpl
|
||||
will not work with older versions of Smarty.
|
||||
|
||||
|
||||
1.4.5
|
||||
-----
|
||||
|
||||
@@ -46,6 +58,7 @@ versions of the same script. The directory format and filename convention for
|
||||
the files in templates_c has changed, so you may want to remove all of the
|
||||
existing ones before you upgrade.
|
||||
|
||||
|
||||
1.4.4
|
||||
-----
|
||||
|
||||
@@ -53,6 +66,7 @@ A few bug fixes, new section looping attributes and properties, debugging
|
||||
console function for control via URL, and overLib integration and access
|
||||
to request variables from within the template.
|
||||
|
||||
|
||||
1.4.3
|
||||
-----
|
||||
|
||||
@@ -62,6 +76,7 @@ ability for someone to execute commands or PHP code from the template language.
|
||||
Smarty also now has a built-in debugging console, which is a javascript pop-up
|
||||
window that displays all the included template names and assigned variables.
|
||||
|
||||
|
||||
1.4.2
|
||||
-----
|
||||
|
||||
@@ -69,6 +84,7 @@ This was mostly one bug fix with variable scoping within included templates
|
||||
and a few documentation changes and updates. See the ChangeLog file for full
|
||||
details.
|
||||
|
||||
|
||||
1.4.1
|
||||
-----
|
||||
|
||||
@@ -79,6 +95,7 @@ could write over the same file at the same time, fyi.
|
||||
|
||||
The reset is minor bug fixes, please refer to the ChangeLog file.
|
||||
|
||||
|
||||
1.4.0
|
||||
-----
|
||||
|
||||
@@ -197,6 +214,7 @@ does not yet exist, it will compile it regardless of this setting. This way you
|
||||
can clear out the $compile_dir and not worry about setting $compile_check to
|
||||
true to get the inital compilation under way.
|
||||
|
||||
|
||||
1.3.2
|
||||
-----
|
||||
|
||||
@@ -229,3 +247,5 @@ function sprintf().
|
||||
|
||||
A few custom modifiers were added: count_characters, count_words,
|
||||
count_sentences, count_paragraphs. All pretty self-explanatory.
|
||||
|
||||
/* vim: set et: */
|
||||
|
@@ -6452,13 +6452,4 @@ Stock Name: {$ticker_name} Stock Price: {$ticker_price}
|
||||
check the website.
|
||||
</para>
|
||||
</chapter>
|
||||
<chapter id="pear">
|
||||
<title>PEAR</title>
|
||||
<para>
|
||||
Smarty uses the PEAR libraries for some of its error handling routines.
|
||||
PEAR libraries come with the distribution of PHP. Be sure that the path to
|
||||
these libraries is included in your php include_path. un*x users check
|
||||
/usr/local/lib/php. Windows users check C:/php/pear.
|
||||
</para>
|
||||
</chapter>
|
||||
</book>
|
||||
|
Reference in New Issue
Block a user