Files
smarty/docs/fr/programmers/api-functions/api-get-template-vars.xml

49 lines
1.3 KiB
XML
Raw Normal View History

2004-04-13 11:47:32 +00:00
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
2004-05-23 15:50:53 +00:00
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
<sect1 id="api.get.template.vars">
<title>get_template_vars</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
renvoy<6F>.
</para>
<example>
<title>get_template_vars</title>
2004-04-13 11:47:32 +00:00
<programlisting>
// 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
print_r($tpl_vars);</programlisting>
2004-05-23 15:50:53 +00:00
</example>
2004-04-13 11:47:32 +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
2004-05-23 15:50:53 +00:00
-->