Q on install docs...
| From: | jsWalter | Date: | Sun, 13 Jul 2003 05:40:47 +0000 |
| Subject: | Q on install docs... | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9881@lists.php.net to get a copy of this message | ||
The INSTALL file says...
* copy the files under the libs/ directory to a directory that is
in your PHP include_path, or set the SMARTY_DIR constant and put
them in this directory.
OK, so I COPIED the libs/ directory into my PHP directory...
/etc/php
/etc/php/lib <- smarty lib directory
I ran the test script from the HTML manual...
require('Smarty.class.php');
$smarty = new Smarty;
And it did not scream, so I assume it worked. At least it did not give me
any errors.
Now, the HTML manual has a sample directory structure...
/usr/local/lib/php/Smarty/Smarty.class.php
/usr/local/lib/php/Smarty/Smarty_Compiler.class.php
/usr/local/lib/php/Smarty/Config_File.class.php
/usr/local/lib/php/Smarty/debug.tpl
/usr/local/lib/php/Smarty/plugins/*.php
OK, I can substitute the examples /usr/local/php for mine /etc/php, but the
example uses 'Smarty' as a directory name to store the Smarty library files.
Now yes, I (think I) understand that the name of the directory is
irrelevant, but I'd like to follow the herd of this one (for a change).
So, which is it?
- all smarty files in PHP directory - README literal reading
- copy lib/ into PHP directory - interpretation of README
- copy smarty files into a SMARTY dir - as HTML manual shows
Thanks
Walter