Closed harikt closed 11 years ago
The idea is to use it
$fields = $form->getFields(); // Pass to view // In view foreach ($this->fields as $name => $field) { echo $this->field( array_merge( $field->toArray(), [ 'name' => $name, 'value' => '', 'label' => '' ] ) ); }
By the way asArray() is as of now. I prefer to change it as toArray() for it makes more sense.
asArray()
toArray()
I think this is implemented in the "form" branch, which will get merged back to "develop" at some point.
ok.
The idea is to use it
By the way
asArray()
is as of now. I prefer to change it astoArray()
for it makes more sense.