tournasdim
4/5/2014 - 7:36 PM

gistfile1.php

<?php
namespace Helloworld\Form;

use Zend\Form\Form;

class SignUp extends Form
{
	public function __construct()
	{
		parent::__construct('signUp');
		$this->setAttribute('action', '/signup');
		$this->setAttribute('method', 'post');
		$this->setInputFilter(new \Helloworld\Form\SignUpFilter());

		$this->add(new \Helloworld\Form\UserFieldset());

		$this->add(array(
			'name' => 'submit',
			'attributes' => array(
				'type'  => 'submit',
				'value' => 'Eintragen'
			),
		));
	}
}