quickform arraysmarty

[email protected] ("Andras Kende") Sun, 15 Jul 2007 23:07:12 -0700
Newsgroups php.smarty.general
Message-ID <030e01c7c76f$8dd9b1a0$a98d14e0$@com>
------=_NextPart_000_030F_01C7C734.E17AD9A0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

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

 


------=_NextPart_000_030F_01C7C734.E17AD9A0--