mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
fixed description of SMARTY_CORE_DIR
removed useless hack (why should it be in the docs, if it isn't recommended anyway?)
This commit is contained in:
@@ -23,10 +23,6 @@ define('SMARTY_DIR','/usr/local/lib/php/Smarty/libs/');
|
||||
// path to Smarty windows style
|
||||
define('SMARTY_DIR', 'c:/webroot/libs/Smarty/libs/');
|
||||
|
||||
// hack (not recommended) that works on both *nix and windows
|
||||
// Smarty is assumend to be in 'includes' dir under current script
|
||||
define('SMARTY_DIR',str_replace("\\","/",getcwd()).'/includes/Smarty/libs/');
|
||||
|
||||
// include the smarty class Note 'S' is upper case
|
||||
require_once(SMARTY_DIR . 'Smarty.class.php');
|
||||
?>
|
||||
@@ -47,7 +43,7 @@ require_once(SMARTY_DIR.'Smarty.class.php');
|
||||
<para>
|
||||
This should be the full system path to the location of the Smarty core
|
||||
files. If not defined, Smarty will default this constant to the
|
||||
<emphasis>libs/</emphasis>
|
||||
<emphasis>internals/</emphasis>
|
||||
sub-directory below
|
||||
<link linkend="constant.smarty.dir">SMARTY_DIR</link>.
|
||||
If defined, the path must end with a slash.
|
||||
|
Reference in New Issue
Block a user