Skip to content

Instantly share code, notes, and snippets.

@kokx
Created June 24, 2012 22:39
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 kokx/2985340 to your computer and use it in GitHub Desktop.
Save kokx/2985340 to your computer and use it in GitHub Desktop.
<?php
namespace User\Form;
use Zend\Form\Form,
Zend\Form\Element;
class Register extends Form
{
/**
* Prepare the elements.
*/
public function prepareElements()
{
$this->add(array(
'name' => 'name',
'attributes' => array(
'type' => 'text',
'label' => 'Your name'
)
));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment