Re: QF2, Smarty, Element date
| From: | Olaf Gleba | Date: | Wed, 29 Feb 2012 11:11:05 +0000 |
| Subject: | Re: QF2, Smarty, Element date | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-31436@lists.php.net to get a copy of this message | ||
Hey Alexey,
Am 25.02.2012 um 07:36 schrieb Alexey Borzov:
> You should try print_r($renderer->toArray()); first and foremost.
> 'date' is internally a group of elements, so it is rendered like a group, I am not
> sure how exactly it will appear in the output, but most probably there will be separate selects.
Yes, thanks for the hint. Found that at least in the docs already. Unlike the former QF Smarty
Renderer you must iterate the elements array within the smarty template explicitly to get the
separate selects[1].
Without a example i was a bit lost first. I'll extend the renderer sample page for that element
and send it as a suggestion to the contributor.
Thanks and bye
Olaf
[1]
{foreach from=$form.<element_name>.elements item=_var}
{$_var.html}
{/foreach}