Documented new constant, SMARTY_CORE_DIR.

This commit is contained in:
boots
2004-09-17 00:33:24 +00:00
parent a0d021ef60
commit a735f8bd2f

View File

@@ -21,6 +21,27 @@ define("SMARTY_DIR","/usr/local/lib/php/Smarty/");
require_once(SMARTY_DIR."Smarty.class.php"); 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> </programlisting>
</example> </example>