mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
some CS
This commit is contained in:
@@ -1,74 +1,77 @@
|
|||||||
<part id="smarty.for.programmers">
|
<part id="smarty.for.programmers">
|
||||||
<title>Smarty For Programmers</title>
|
<title>Smarty For Programmers</title>
|
||||||
|
|
||||||
|
<chapter id="smarty.constants">
|
||||||
|
<title>Constants</title>
|
||||||
|
|
||||||
<chapter id="smarty.constants">
|
<sect1 id="constant.smarty.dir">
|
||||||
<title>Constants</title>
|
<title>SMARTY_DIR</title>
|
||||||
<para></para>
|
<para>
|
||||||
|
This should be the full system path to the location of the Smarty
|
||||||
<sect1 id="constant.smarty.dir">
|
class files. If this is not defined, then Smarty will attempt to
|
||||||
<title>SMARTY_DIR</title>
|
determine the appropriate value automatically. If defined, the path
|
||||||
<para>
|
must end with a slash.
|
||||||
This should be the full system path to the location of the Smarty
|
</para>
|
||||||
class files. If this is not defined, then Smarty will attempt to
|
<example>
|
||||||
determine the appropriate value automatically. If defined, the path
|
<title>SMARTY_DIR</title>
|
||||||
must end with a slash.
|
<programlisting role="php">
|
||||||
</para>
|
<![CDATA[
|
||||||
<example>
|
<?php
|
||||||
<title>SMARTY_DIR</title>
|
|
||||||
<programlisting>
|
|
||||||
// set path to Smarty directory
|
// set path to Smarty directory
|
||||||
define("SMARTY_DIR","/usr/local/lib/php/Smarty/");
|
define("SMARTY_DIR","/usr/local/lib/php/Smarty/");
|
||||||
|
|
||||||
require_once(SMARTY_DIR."Smarty.class.php");</programlisting>
|
require_once(SMARTY_DIR."Smarty.class.php");</programlisting>
|
||||||
</example>
|
?>
|
||||||
</sect1>
|
]]>
|
||||||
</chapter>
|
</programlisting>
|
||||||
|
</example>
|
||||||
|
</sect1>
|
||||||
|
</chapter>
|
||||||
|
|
||||||
<chapter id="api.variables">
|
<chapter id="api.variables">
|
||||||
<title>Variables</title>
|
<title>Variables</title>
|
||||||
|
|
||||||
<sect1 id="variable.template.dir">
|
<sect1 id="variable.template.dir">
|
||||||
<title>$template_dir</title>
|
<title>$template_dir</title>
|
||||||
|
<para>
|
||||||
|
This is the name of the default template directory. If you do
|
||||||
|
not supply a resource type when including files, they will be
|
||||||
|
found here. By default this is "./templates", meaning that it
|
||||||
|
will look for the templates directory in the same directory as
|
||||||
|
the executing php script.
|
||||||
|
</para>
|
||||||
|
<note>
|
||||||
|
<title>Technical Note</title>
|
||||||
|
<para>
|
||||||
|
It is not recommended to put this directory under
|
||||||
|
the web server document root.
|
||||||
|
</para>
|
||||||
|
</note>
|
||||||
|
</sect1>
|
||||||
|
<sect1 id="variable.compile.dir">
|
||||||
|
<title>$compile_dir</title>
|
||||||
|
<para>
|
||||||
|
This is the name of the directory where compiled templates are
|
||||||
|
located. By default this is "./templates_c", meaning that it
|
||||||
|
will look for the compile directory in the same directory as
|
||||||
|
the executing php script.
|
||||||
|
</para>
|
||||||
|
<note>
|
||||||
|
<title>Technical Note</title>
|
||||||
<para>
|
<para>
|
||||||
This is the name of the default template directory. If you do
|
|
||||||
not supply a resource type when including files, they will be
|
|
||||||
found here. By default this is "./templates", meaning that it
|
|
||||||
will look for the templates directory in the same directory as
|
|
||||||
the executing php script.
|
|
||||||
</para>
|
|
||||||
<note>
|
|
||||||
<title>Technical Note</title>
|
|
||||||
<para>
|
|
||||||
It is not recommended to put this directory under
|
|
||||||
the web server document root.
|
|
||||||
</para>
|
|
||||||
</note>
|
|
||||||
</sect1>
|
|
||||||
<sect1 id="variable.compile.dir">
|
|
||||||
<title>$compile_dir</title>
|
|
||||||
<para>
|
|
||||||
This is the name of the directory where compiled templates are
|
|
||||||
located. By default this is "./templates_c", meaning that it
|
|
||||||
will look for the compile directory in the same directory as
|
|
||||||
the executing php script.
|
|
||||||
</para>
|
|
||||||
<note>
|
|
||||||
<title>Technical Note</title>
|
|
||||||
<para>
|
|
||||||
This setting must be either a relative or
|
This setting must be either a relative or
|
||||||
absolute path. include_path is not used for writing files.
|
absolute path. include_path is not used for writing files.
|
||||||
</para>
|
</para>
|
||||||
</note>
|
</note>
|
||||||
<note>
|
<note>
|
||||||
<title>Technical Note</title>
|
<title>Technical Note</title>
|
||||||
<para>
|
<para>
|
||||||
It is not recommended to put this directory under
|
It is not recommended to put this directory under
|
||||||
the web server document root.
|
the web server document root.
|
||||||
</para>
|
</para>
|
||||||
</note>
|
</note>
|
||||||
</sect1>
|
</sect1>
|
||||||
<sect1 id="variable.config.dir">
|
<sect1 id="variable.config.dir">
|
||||||
<title>$config_dir</title>
|
<title>$config_dir</title>
|
||||||
<para>
|
<para>
|
||||||
This is the directory used to store config files used in the
|
This is the directory used to store config files used in the
|
||||||
|
Reference in New Issue
Block a user