2004-04-13 11:47:32 +00:00
|
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
|
<!-- $Revision$ -->
|
2004-12-26 17:02:12 +00:00
|
|
|
|
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
|
|
|
|
|
<refentry id="api.get.template.vars">
|
|
|
|
|
<refnamediv>
|
|
|
|
|
<refname>get_template_vars</refname>
|
|
|
|
|
<refpurpose></refpurpose>
|
|
|
|
|
</refnamediv>
|
|
|
|
|
<refsect1>
|
|
|
|
|
<title />
|
|
|
|
|
<methodsynopsis>
|
|
|
|
|
<type>array</type><methodname>get_template_vars</methodname>
|
|
|
|
|
<methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam>
|
|
|
|
|
</methodsynopsis>
|
|
|
|
|
<para>
|
|
|
|
|
Retourne la valeur assign<67>e pass<73>e en param<61>tre. Si aucun param<61>tre
|
|
|
|
|
n'est donn<6E>, un tableau de toutes les variables assign<67>es est
|
|
|
|
|
retourn<72>.
|
|
|
|
|
</para>
|
|
|
|
|
<example>
|
|
|
|
|
<title>Exemple avec get_template_vars</title>
|
|
|
|
|
<programlisting role="php">
|
|
|
|
|
<![CDATA[
|
|
|
|
|
<?php
|
2004-04-13 11:47:32 +00:00
|
|
|
|
// r<>cup<75>re la variable 'foo' assign<67>e au template
|
|
|
|
|
// get assigned template var 'foo'
|
|
|
|
|
$foo = $smarty->get_template_vars('foo');
|
|
|
|
|
|
|
|
|
|
// r<>cup<75>re toutes les variables assign<67>es a ce template
|
|
|
|
|
$tpl_vars = $smarty->get_template_vars();
|
|
|
|
|
|
|
|
|
|
// les affiche a l'<27>cran
|
2004-12-26 17:02:12 +00:00
|
|
|
|
print_r($tpl_vars);
|
|
|
|
|
?>
|
|
|
|
|
]]>
|
|
|
|
|
</programlisting>
|
|
|
|
|
</example>
|
|
|
|
|
</refsect1>
|
|
|
|
|
</refentry>
|
2004-04-13 11:47:32 +00:00
|
|
|
|
<!-- 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
|
2004-05-23 15:50:53 +00:00
|
|
|
|
-->
|