cvs: smarty /docs/en/programmers smarty-constants.xml

[email protected] ("Messju Mohr") Fri, 09 Dec 2005 18:46:27 -0000
Newsgroups php.smarty.cvs
Message-ID <cvsmessju1134153987@cvsserver>
messju		Fri Dec  9 13:46:27 2005 EDT

  Modified files:              
    /smarty/docs/en/programmers	smarty-constants.xml 
  Log:
  fixed description of SMARTY_CORE_DIR
  removed useless hack (why should it be in the docs, if it isn't
  recommended anyway?)
  
  
http://cvs.php.net/diff.php/smarty/docs/en/programmers/smarty-constants.xml?r1=1.7&r2=1.8&ty=u
Index: smarty/docs/en/programmers/smarty-constants.xml
diff -u smarty/docs/en/programmers/smarty-constants.xml:1.7 smarty/docs/en/programmers/smarty-constants.xml:1.8
--- smarty/docs/en/programmers/smarty-constants.xml:1.7	Sat Sep 10 07:36:33 2005
+++ smarty/docs/en/programmers/smarty-constants.xml	Fri Dec  9 13:46:25 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
 <chapter id="smarty.constants">
 <title>Constants</title>
 
@@ -18,17 +18,13 @@
 <![CDATA[
 <?php
 // set path to Smarty directory *nix style
-define('SMARTY_DIR','/usr/local/lib/php/Smarty/libs/');
+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/');
+define('SMARTY_DIR', 'c:/webroot/libs/Smarty/libs/');
 
 // include the smarty class Note 'S' is upper case
-require_once(SMARTY_DIR.'Smarty.class.php');
+require_once(SMARTY_DIR . 'Smarty.class.php');
 ?>
 ]]>
      </programlisting>
@@ -47,7 +43,7 @@
     <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.
@@ -60,7 +56,7 @@
 <?php
 
 // load core.get_microtime.php
-require_once(SMARTY_CORE_DIR.'core.get_microtime.php');
+require_once(SMARTY_CORE_DIR . 'core.get_microtime.php');
 
 ?>
 ]]>