mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 18:04:26 +02:00
update FAQ, QUICKSTART for windows include_path setup
This commit is contained in:
6
FAQ
6
FAQ
@@ -97,7 +97,11 @@ Q: I get the following error when running Smarty:
|
||||
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.
|
||||
/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
|
||||
|
@@ -59,6 +59,12 @@ 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
|
||||
|
Reference in New Issue
Block a user