PageRenderTime 53ms CodeModel.GetById 29ms RepoModel.GetById 1ms app.codeStats 0ms

/docs/es/programmers/api-variables/variable-php-handling.xml

https://github.com/pop/smarty
XML | 48 lines | 27 code | 0 blank | 21 comment | 0 complexity | 3397bd39326d98e29bc8bf29d0bcf86c MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- $Revision$ -->
  3. <sect1 id="variable.php.handling">
  4. <title>$php_handling</title>
  5. <para>
  6. Este informa al Smarty como manipular códigos PHP contenidos en los
  7. templates. Hay cuatro posibles configuraciones, siendo el default
  8. SMARTY_PHP_PASSTHRU. Observe que esto NO afectara los códigos php
  9. dentro de las etiquetas
  10. <link linkend="language.function.php">{php}{/php}</link> en el template.
  11. </para>
  12. <itemizedlist>
  13. <listitem><para>SMARTY_PHP_PASSTHRU - Smarty echos tags as-is.</para></listitem>
  14. <listitem><para>SMARTY_PHP_QUOTE - Smarty abre comillas a las etiquetas
  15. de entidades html.</para></listitem>
  16. <listitem><para>SMARTY_PHP_REMOVE - Smarty borra las etiquetas del
  17. template.</para></listitem>
  18. <listitem><para>SMARTY_PHP_ALLOW - Smarty ejecuta las etiquetas como
  19. código PHP.</para></listitem>
  20. </itemizedlist>
  21. <note>
  22. <para>
  23. Incrustar codigo PHP dentro del template es sumamente desalentador.
  24. Use <link linkend="language.custom.functions">custom functions</link>
  25. o <link linkend="language.modifiers">modifiers</link> en vez de eso.
  26. </para>
  27. </note>
  28. </sect1>
  29. <!-- Keep this comment at the end of the file
  30. Local variables:
  31. mode: sgml
  32. sgml-omittag:t
  33. sgml-shorttag:t
  34. sgml-minimize-attributes:nil
  35. sgml-always-quote-attributes:t
  36. sgml-indent-step:1
  37. sgml-indent-data:t
  38. indent-tabs-mode:nil
  39. sgml-parent-document:nil
  40. sgml-default-dtd-file:"../../../../manual.ced"
  41. sgml-exposed-tags:nil
  42. sgml-local-catalogs:nil
  43. sgml-local-ecat-files:nil
  44. End:
  45. vim600: syn=xml fen fdm=syntax fdl=2 si
  46. vim: et tw=78 syn=sgml
  47. vi: ts=1 sw=1
  48. -->