Re: Re: Smarty + QuickForm
| From: | Thomas Schulz | Date: | Sat, 26 Jun 2004 09:29:13 +0000 |
| Subject: | Re: Re: Smarty + QuickForm | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13354@lists.php.net to get a copy of this message | ||
Verona Busch wrote in php.pear.general:
> I would like to output my tables through DB_DataObject_FormBuilder into
> an smarty.tpl. Cause DataObject creates my classes automaticly, I don't
> want to set every column label and every row into the templatefile by
> myself, of cource. But how do I have to build in the loops in smarty
> template?
[PEAR-Path]/docs/HTML_QuickForm/docs/renderers/SmartyDynamic_example.php
[PEAR-Path]/docs/HTML_QuickForm/docs/renderers/templates/smarty-dynamic.tpl
This Example uses the Array-Renderer and does exactly what you like.
ThS.