- Code: Select all
$this->add(array(
'type' => 'Zend\Form\Element\Collection',
'name' => 'tags',
'options' => array(
'count' => 1,
'should_create_template' => true,
'allow_add' => true,
'target_element' => array(
'type' => 'Tasks\Fieldset\TagFieldset'
)
)
));
How i can change auto-created markup for <span data-template="..."></span>? It is because i not use
- Code: Select all
$this->formCollection($tags);
but i use
- Code: Select all
<?php if(count($tags) > 0) {?>
<?php foreach($tags as $tag) {?>
<div class="tag">
<label class="control-label">Тег</label>
<div class="controls">
<?php echo $this->formCheckbox($tag->get('use'))?>
<?php echo $this->formSelect($tag->get('tag_id'))?>
</div>
</div>
<?php }?>
<?php }?>
Of course, please not offer create markup in my fieldsets, like in ZF1. All markup i want keep in my view/application/forms/edit-form.phtml.

