cvs: peardoc /en/package/structures/structures-datagrid faq.xml

From: Date: Sun, 11 Mar 2007 15:04:57 +0000
Subject: cvs: peardoc /en/package/structures/structures-datagrid faq.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9510@lists.php.net to get a copy of this message
wiesemann Sun Mar 11 15:04:57 2007 UTC Modified files: /peardoc/en/package/structures/structures-datagrid faq.xml Log: - new FAQ entry http://cvs.php.net/viewvc.cgi/peardoc/en/package/structures/structures-datagrid/faq.xml?r1=1.5&r2=1.6&diff_format=u Index: peardoc/en/package/structures/structures-datagrid/faq.xml diff -u peardoc/en/package/structures/structures-datagrid/faq.xml:1.5 peardoc/en/package/structures/structures-datagrid/faq.xml:1.6 --- peardoc/en/package/structures/structures-datagrid/faq.xml:1.5 Fri Jan 19 13:37:44 2007 +++ peardoc/en/package/structures/structures-datagrid/faq.xml Sun Mar 11 15:04:57 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="package.structures.structures-datagrid.faq"> <refnamediv> <refname>FAQ</refname> @@ -179,6 +179,32 @@ </para> </answer> </qandaentry> + <qandaentry> + <question> + <para> + I have used $renderer->toHtml(); with older versions of + Structures_DataGrid, but this does not work anymore. How can I fix my + code? + </para> + </question> + <answer> + <para> + If you just want to output the HTML code, use the following line of code: +<programlisting role="php"> +<![CDATA[ +$datagrid->render() +]]> +</programlisting> + If you want to get the generated HTML code, e.g. for using it within a + template, use the following line of code: +<programlisting role="php"> +<![CDATA[ +$html = $datagrid->getOutput(); +]]> +</programlisting> + </para> + </answer> + </qandaentry> </qandaset> </refsect1> </refentry>

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