mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
Documented new constant, SMARTY_CORE_DIR.
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user