quickform arraysmarty

From: Date: Mon, 16 Jul 2007 06:07:12 +0000
Subject: quickform arraysmarty
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13734@lists.php.net to get a copy of this message
Hello, I changed my quickform templates from static {{$form.phone.label}} to dynamic. This works great as it saves time while making forms... TPL: <form {{$form.attributes}}> {{foreach from=$form.elements item=element}} label : {{$element.label}} html: {{$element.html}}<br> {{/foreach}} </form> But before I used HTML/QuickForm/Renderer/ArraySmarty.php $renderer =& new HTML_QuickForm_Renderer_ArraySmarty($smarty); But with this dynamic I was able only do it with HTML/QuickForm/Renderer/Array.php $renderer =& new HTML_QuickForm_Renderer_Array(true, true); Can you confirm if this is the expected if dynamic forms are used ? Thank you, Andras Kende http://www.kende.com

« previous php.smarty.general (#13734) next »