for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SpeckCatalog\Form;
use Zend\Form\Form as ZendForm;
class RemoveChild extends ZendForm
{
public function __construct()
parent::__construct();
$this->add(array(
'name' => 'submit',
'type' => 'Zend\Form\Element\Submit',
'attributes' => array(
'value' => ' x ',
),
));
}
public function addElements(array $elements)
foreach ($elements as $key => $val) {
'name' => $key,
'type' => 'hidden',
'value' => $val,
return $this;
public function addParent(array $elements)
'name' => 'parent[' . $key . ']',
public function addChild(array $elements)
'name' => 'child[' . $key . ']',