List Info

Thread: quickform arraysmarty




quickform arraysmarty
user name
2007-07-16 01:07:12
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

 

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )