/documentation/en/programmers/api-variables/variable-compile-dir.xml
XML | 66 lines | 44 code | 1 blank | 21 comment | 0 complexity | fefc5960b11b87e53845736787eea480 MD5 | raw file
Possible License(s): LGPL-3.0
- <?xml version="1.0" encoding="UTF-8"?>
- <!-- $Revision: 4278 $ -->
- <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
- <filename class="directory">./templates_c</filename>, meaning that Smarty
- will look for the <filename class="directory">templates_c/</filename>
- directory in the same directory as
- the executing php script. <emphasis role="bold">This directory must
- be writeable by the web server</emphasis>,
- <link linkend="installing.smarty.basic">see install</link> for more info.
- </para>
- <note>
- <title>Technical Note</title>
- <para>
- This setting must be either a relative or
- absolute path. include_path is not used for writing files.
- </para>
- </note>
- <note>
- <title>Technical Note</title>
- <para>
- It is not recommended to put this directory under
- the web server document root.
- </para>
- </note>
- <note>
- <title>Note</title>
- <para>
- As of Smarty 3.1 the attribute $compile_dir is no longer accessible directly. Use
- <link linkend="api.get.compile.dir"><varname>getCompileDir()</varname></link> and
- <link linkend="api.set.compile.dir"><varname>setCompileDir()</varname></link> instead.
- </para>
- </note>
- <para>
- See also
- <link linkend="api.get.compile.dir"><varname>getCompileDir()</varname></link>,
- <link linkend="api.set.compile.dir"><varname>setCompileDir()</varname></link>,
- <link linkend="variable.compile.id"><parameter>$compile_id</parameter></link>
- and
- <link linkend="variable.use.sub.dirs"><parameter>$use_sub_dirs</parameter></link>.
- </para>
- </sect1>
- <!-- Keep this comment at the end of the file
- Local variables:
- mode: sgml
- sgml-omittag:t
- sgml-shorttag:t
- sgml-minimize-attributes:nil
- sgml-always-quote-attributes:t
- sgml-indent-step:1
- sgml-indent-data:t
- indent-tabs-mode:nil
- sgml-parent-document:nil
- sgml-default-dtd-file:"../../../../manual.ced"
- sgml-exposed-tags:nil
- sgml-local-catalogs:nil
- sgml-local-ecat-files:nil
- End:
- vim600: syn=xml fen fdm=syntax fdl=2 si
- vim: et tw=78 syn=sgml
- vi: ts=1 sw=1
- -->