mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-05 06:41:39 +01:00
44 lines
1.2 KiB
XML
44 lines
1.2 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 1.1 Maintainer: thomasgm Status: ready -->
|
|
<sect1 id="language.function.php">
|
|
<title>php</title>
|
|
<para>
|
|
Tags php permitem que códigos php sejam embutidos diretamente nos templates.
|
|
Eles não serão interpretados, não importando a definição de
|
|
<link linkend="variable.php.handling">$php_handling</link>. Esta opção é
|
|
somente para usuários avançados e normalmente não é necessária.
|
|
</para>
|
|
<example>
|
|
<title>Tags php</title>
|
|
<programlisting>
|
|
<![CDATA[
|
|
{php}
|
|
// incluindo um script php
|
|
// diretamente no template.
|
|
include("/caminho/para/condicoes_do_tempo.php");
|
|
{/php}
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</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
|
|
--> |