quickform arraysmarty

View: New views
1 Messages — Rating Filter:   Alert me  

quickform arraysmarty

by Andras Kende :: Rate this Message:

Reply to Author | View Threaded | Show Only 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