diff options
| author | Simon | 2011-01-31 15:34:21 +0100 |
|---|---|---|
| committer | Simon | 2011-01-31 15:34:21 +0100 |
| commit | 6c07eb5e85f9705c83b0415a89dd05a19b138bce (patch) | |
| tree | 38c414878306cb3ba3bd2ebe5093473ecaabd4fb /application/forms/AuthRegister.php | |
| parent | Person Register Form (diff) | |
| download | pbs2-6c07eb5e85f9705c83b0415a89dd05a19b138bce.tar.gz pbs2-6c07eb5e85f9705c83b0415a89dd05a19b138bce.tar.xz pbs2-6c07eb5e85f9705c83b0415a89dd05a19b138bce.zip | |
auth controller vervollstÃĪndigt
Diffstat (limited to 'application/forms/AuthRegister.php')
| -rw-r--r-- | application/forms/AuthRegister.php | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/application/forms/AuthRegister.php b/application/forms/AuthRegister.php new file mode 100644 index 0000000..7cb6ef4 --- /dev/null +++ b/application/forms/AuthRegister.php @@ -0,0 +1,105 @@ +<?php + +class Application_Form_AuthRegister extends Zend_Form +{ + + public function init() + { + $this->setName("Login"); + $this->setMethod('post'); + + $this->addElement('text', 'title', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Title:', + )); + + + $this->addElement('text', 'name', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Name:', + )); + + $this->addElement('text', 'firstname', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Firstname:', + )); + + $this->addElement('text', 'street', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Street:', + )); + + $this->addElement('text', 'housenumber', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Housenumber:', + )); + + $this->addElement('text', 'city', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'City:', + )); + + $this->addElement('text', 'postalcode', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Postalcode:', + )); + + $this->addElement('text', 'email', array( + 'filters' => array('StringTrim', 'StringToLower'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Email:', + )); + + $this->addElement('password', 'password', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Password:', + )); + + $this->addElement('submit', 'register', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Login', + )); + + + } + + + +} + |
