mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-19 15:35:20 +02:00
49 lines
1.7 KiB
XML
49 lines
1.7 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision$ -->
|
|
<sect1 id="variable.php.handling">
|
|
<title>$php_handling</title>
|
|
<para>
|
|
Este informa al Smarty como manipular códigos PHP contenidos en los
|
|
templates. Hay cuatro posibles configuraciones, siendo el default
|
|
SMARTY_PHP_PASSTHRU. Observe que esto NO afectara los códigos php
|
|
dentro de las etiquetas
|
|
<link linkend="language.function.php">{php}{/php}</link> en el template.
|
|
</para>
|
|
<itemizedlist>
|
|
<listitem><para>SMARTY_PHP_PASSTHRU - Smarty echos tags as-is.</para></listitem>
|
|
<listitem><para>SMARTY_PHP_QUOTE - Smarty abre comillas a las etiquetas
|
|
de entidades html.</para></listitem>
|
|
<listitem><para>SMARTY_PHP_REMOVE - Smarty borra las etiquetas del
|
|
template.</para></listitem>
|
|
<listitem><para>SMARTY_PHP_ALLOW - Smarty ejecuta las etiquetas como
|
|
código PHP.</para></listitem>
|
|
</itemizedlist>
|
|
<note>
|
|
<para>
|
|
Incrustar codigo PHP dentro del template es sumamente desalentador.
|
|
Use <link linkend="language.custom.functions">custom functions</link>
|
|
o <link linkend="language.modifiers">modifiers</link> en vez de eso.
|
|
</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
|
|
-->
|