public function __construct($name = null) { // we want to ignore the name passed parent::__construct('galerieform'); //$this->setHydrator(new ClassMethods); $this->add(array('name' => 'imagepath', 'attributes' => array('type' => 'text'), 'options' => array('label' => $this->utils->translate('Image')))); $this->add(array('name' => 'imagepath2', 'attributes' => array('type' => 'text'), 'options' => array('label' => $this->utils->translate('Image 2')))); }