cvs: smarty /docs/en/programmers smarty-constants.xml
"boots" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsboots1095381205@cvsserver> |
boots Thu Sep 16 20:33:25 2004 EDT
Modified files:
/smarty/docs/en/programmers smarty-constants.xml
Log:
Documented new constant, SMARTY_CORE_DIR.
http://cvs.php.net/diff.php/smarty/docs/en/programmers/smarty-constants.xml?r1=1.2&r2=1.3&ty=u
Index: smarty/docs/en/programmers/smarty-constants.xml
diff -u smarty/docs/en/programmers/smarty-constants.xml:1.2 smarty/docs/en/programmers/smarty-constants.xml:1.3
--- smarty/docs/en/programmers/smarty-constants.xml:1.2 Tue Apr 13 07:39:11 2004
+++ smarty/docs/en/programmers/smarty-constants.xml Thu Sep 16 20:33:24 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<chapter id="smarty.constants">
<title>Constants</title>
@@ -20,6 +20,27 @@
define("SMARTY_DIR","/usr/local/lib/php/Smarty/");
require_once(SMARTY_DIR."Smarty.class.php");
+?>
+]]>
+ </programlisting>
+ </example>
+ </sect1>
+ <sect1 id="constant.smarty.core.dir">
+ <title>SMARTY_CORE_DIR</title>
+ <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 internals/
+ sub-directory below SMARTY_DIR. If defined, the path must end with a slash.
+ Use this constant when manually including any of the core.* files.
+ </para>
+ <example>
+ <title>SMARTY_CORE_DIR</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// load core.get_microtime.php
+
+require_once(SMARTY_CORE_DIR."core.get_microtime.php");
?>
]]>
</programlisting>
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php