mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-12 20:15:23 +02:00
Typos correction and all translated now.
This commit is contained in:
61
docs/id/programmers/api-variables/variable-php-handling.xml
Normal file
61
docs/id/programmers/api-variables/variable-php-handling.xml
Normal file
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="variable.php.handling">
|
||||
<title>$php_handling</title>
|
||||
<para>
|
||||
Ini memberitahu Smarty bagaimana untuk menangani kode PHP yang
|
||||
disertakan dalam template. Ada empat kemungkinan setelan, standarnya
|
||||
adalah <constant>SMARTY_PHP_PASSTHRU</constant>. Catatan bahwa ini
|
||||
tidak mempengaruhi kode php di dalam tag <link linkend="language.function.php">
|
||||
<varname>{php}{/php}</varname></link> pada template.
|
||||
</para>
|
||||
|
||||
|
||||
<itemizedlist>
|
||||
<listitem><para>
|
||||
<constant>SMARTY_PHP_PASSTHRU</constant> - Smarty menampilkan tag apa adanya.
|
||||
</para></listitem>
|
||||
|
||||
<listitem><para>
|
||||
<constant>SMARTY_PHP_QUOTE</constant> - Smarty memberi tanda kutip tag
|
||||
sebagai entitas html.
|
||||
</para></listitem>
|
||||
|
||||
<listitem><para>
|
||||
<constant>SMARTY_PHP_REMOVE</constant> - Smarty menghapus tag dari
|
||||
template.</para></listitem>
|
||||
|
||||
<listitem><para>
|
||||
<constant>SMARTY_PHP_ALLOW</constant> - Smarty akan menjalankan tag
|
||||
sebagai kode PHP.</para></listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
Menyertakan kode PHP ke dalam template sangat tidak disarankan.
|
||||
Lebih baik gunakan <link linkend="plugins.functions">fungsi kustom</link>
|
||||
atau
|
||||
<link linkend="plugins.modifiers">pengubah</link>.
|
||||
</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
|
||||
-->
|
Reference in New Issue
Block a user