Skip to content

Instantly share code, notes, and snippets.

@nclundsten
Last active December 14, 2015 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nclundsten/5067757 to your computer and use it in GitHub Desktop.
Save nclundsten/5067757 to your computer and use it in GitHub Desktop.
<?php
namespace SpeckAddress\Form;
use Zend\Form\Form;
class Address extends Form
{
public function __construct()
{
parent::__construct();
$this->add(array(
'name' => 'name',
'type' => 'Zend\Form\Element\Text',
'options' => array(
'label' => 'Address Label'
),
));
$this->add(array(
'name' => 'street_address',
'type' => 'Zend\Form\Element\Textarea',
'options' => array(
'label' => 'Street Address'
),
));
$this->add(array(
'name' => 'city',
'type' => 'Zend\Form\Element\Text',
'options' => array(
'label' => 'City'
),
));
$this->add(array(
'name' => 'province',
'type' => 'Zend\Form\Element\Text',
'options' => array(
'label' => 'State / Province'
),
));
$this->add(array(
'name' => 'postal_code',
'type' => 'Zend\Form\Element\Text',
'options' => array(
'label' => 'Postal Code',
),
));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment