/docs/es/programmers/api-variables/variable-php-handling.xml
XML | 48 lines | 27 code | 0 blank | 21 comment | 0 complexity | 3397bd39326d98e29bc8bf29d0bcf86c MD5 | raw file
Possible License(s): LGPL-2.1
- <?xml version="1.0" encoding="UTF-8"?>
- <!-- $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
- -->