cvs: peardoc /en/package/structures/structures-datagrid/structures-datagrid-renderer smarty.xml

From: Date: Sat, 11 Nov 2006 16:04:26 +0000
Subject: cvs: peardoc /en/package/structures/structures-datagrid/structures-datagrid-renderer smarty.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8756@lists.php.net to get a copy of this message
wiesemann Sat Nov 11 16:04:26 2006 UTC Modified files: /peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer smarty.xml Log: - added more explaination for the Smarty renderer http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml diff -u peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml:1.3 peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml:1.4 --- peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml:1.3 Sat Nov 11 15:56:09 2006 +++ peardoc/en/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml Sat Nov 11 16:04:26 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.structures.structures-datagrid.structures-datagrid-renderer.smarty"> <refnamediv> <refname>Structures_DataGrid_Renderer_Smarty</refname> @@ -195,6 +195,18 @@ &lt;/table&gt; </programlisting> </para> + <para> + This template can be used with code similar to this prototype: + </para> + <para> + <programlisting> +$smarty = new Smarty(...); +$datagrid =&amp; new Structures_DataGrid(...); +$datagrid-&gt;bind(...); +$datagrid-&gt;fill($smarty); +$smarty-&gt;display(PATH TO YOUR TEMPLATE); + </programlisting> + </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file

« previous php.pear.doc (#8756) next »