2004-10-07 18:50:52 +00:00
|
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
|
|
<!-- $Revision$ -->
|
|
|
|
|
|
<sect1 id="language.function.php">
|
2005-11-08 23:37:29 +00:00
|
|
|
|
<title>{php}</title>
|
2004-10-07 18:50:52 +00:00
|
|
|
|
<para>
|
2005-11-08 23:37:29 +00:00
|
|
|
|
Las etiquetas {php} permiten a suetdd incrustar c<>digo php directamente
|
2004-10-07 18:50:52 +00:00
|
|
|
|
en el template. No ser<65> escapado, no importando la definici<63>n de
|
|
|
|
|
|
<link linkend="variable.php.handling">$php_handling</link>.
|
|
|
|
|
|
Esto es solo para usuario avanzados y normalmente no es necesario.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
<example>
|
2005-11-08 23:37:29 +00:00
|
|
|
|
<title>Etiqueta {php}</title>
|
|
|
|
|
|
<programlisting role="php">
|
|
|
|
|
|
<![CDATA[
|
2004-10-07 18:50:52 +00:00
|
|
|
|
{php}
|
|
|
|
|
|
// incluyendo un script php
|
|
|
|
|
|
// directamente en el template.
|
2005-11-08 23:37:29 +00:00
|
|
|
|
include("/path/to/display_weather.php");
|
|
|
|
|
|
{/php}
|
|
|
|
|
|
]]>
|
|
|
|
|
|
</programlisting>
|
2004-10-07 18:50:52 +00:00
|
|
|
|
</example>
|
2005-11-08 23:37:29 +00:00
|
|
|
|
<note>
|
|
|
|
|
|
<title>Nota t<>cnica</title>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
Para poder tener acceso a las variables de PHP puede ser necesario usar la palabra clave
|
|
|
|
|
|
<ulink url="&url.php-manual;global">global</ulink> de PHP.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
</note>
|
|
|
|
|
|
<para>
|
|
|
|
|
|
ver Tambi<62>n
|
|
|
|
|
|
<link linkend="variable.php.handling">$php_handling</link>,
|
|
|
|
|
|
<link linkend="language.function.include.php">{include_php}</link>,
|
|
|
|
|
|
<link linkend="language.function.include">{include}</link> y
|
|
|
|
|
|
<link linkend="tips.componentized.templates">Componentized Templates</link>.
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
2004-10-07 18:50:52 +00:00
|
|
|
|
</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
|
|
|
|
|
|
-->
|