Skip to content

Instantly share code, notes, and snippets.

@michael-romer
Created October 20, 2012 17:12
Show Gist options
  • Save michael-romer/3924059 to your computer and use it in GitHub Desktop.
Save michael-romer/3924059 to your computer and use it in GitHub Desktop.
Listing 16.25
<?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->add(array(
'type' => 'Helloworld\Form\UserFieldset',
'options' => array(
'use_as_base_fieldset' => true
)
));
$this->add(array(
'name' => 'submit',
'attributes' => array(
'type' => 'submit',
'value' => 'Eintragen'
),
));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment