Hi guys,
Is there a way where i can loop all my Elements text fields, select dropdowns, buttons
from my Form
class SampleForm extends Form{
public function initialize(){
$fname = new Text('fname');
$lname = new Text('lname');
$mname = new Text('mname');
$this->add($fname, $lname, $mname);
}
}
and in my form view I can do something like
{% for elements in form %}
<div class="form-group">
{{ elements }}
</div>
{% endfor %}
is this possible?