mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-05 00:30:54 +02:00
61 lines
1.8 KiB
XML
61 lines
1.8 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision$ -->
|
|
<sect1 id="variable.php.handling">
|
|
<title>$php_handling</title>
|
|
<para>
|
|
This tells Smarty how to handle PHP code embedded in the
|
|
templates. There are four possible settings, the default being
|
|
<constant>SMARTY_PHP_PASSTHRU</constant>. Note that this does NOT affect
|
|
php code within <link linkend="language.function.php">
|
|
<varname>{php}{/php}</varname></link> tags in the template.
|
|
</para>
|
|
|
|
|
|
<itemizedlist>
|
|
<listitem><para>
|
|
<constant>SMARTY_PHP_PASSTHRU</constant> - Smarty echos tags as-is.
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
<constant>SMARTY_PHP_QUOTE</constant> - Smarty quotes the tags as
|
|
html entities.
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
<constant>SMARTY_PHP_REMOVE</constant> - Smarty removes the tags from
|
|
the templates.</para></listitem>
|
|
|
|
<listitem><para>
|
|
<constant>SMARTY_PHP_ALLOW</constant> - Smarty will execute the tags
|
|
as PHP code.</para></listitem>
|
|
</itemizedlist>
|
|
|
|
<note>
|
|
<para>
|
|
Embedding PHP code into templates is highly discouraged.
|
|
Use <link linkend="plugins.functions">custom functions</link> or
|
|
<link linkend="plugins.modifiers">modifiers</link> instead.
|
|
</para>
|
|
</note>
|
|
</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
|
|
-->
|