Re: QF2, Smarty, Element date

From: Date: Mon, 05 Mar 2012 22:57:29 +0000
Subject: Re: QF2, Smarty, Element date
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31441@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} gruss Olaf -- creatics : Inh. Olaf Gleba Tel. +49 (0)221 170 67 224 : Fax. +49 (0)221 170 67 225 og@creatics.de : http://creatics.de PGP-Key http://creatics.de/keys/

« previous php.pear.general (#31441) next »