Last active
December 14, 2015 09:50
-
-
Save nclundsten/5067757 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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