diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | .project | 22 | ||||
-rw-r--r-- | .zfproject.xml | 4 | ||||
-rw-r--r-- | application/forms/AuthLogin.php | 38 |
4 files changed, 43 insertions, 23 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4387d62 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +library/ +.project diff --git a/.project b/.project deleted file mode 100644 index d7985fb..0000000 --- a/.project +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>pbs2</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.wst.validation.validationbuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.dltk.core.scriptbuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.php.core.PHPNature</nature> - </natures> -</projectDescription> diff --git a/.zfproject.xml b/.zfproject.xml index abd088a..e4b53ed 100644 --- a/.zfproject.xml +++ b/.zfproject.xml @@ -13,7 +13,9 @@ </controllerFile> <controllerFile controllerName="Error"/> </controllersDirectory> - <formsDirectory enabled="false"/> + <formsDirectory> + <formFile formName="AuthLogin"/> + </formsDirectory> <layoutsDirectory enabled="false"/> <modelsDirectory> <dbTableDirectory> diff --git a/application/forms/AuthLogin.php b/application/forms/AuthLogin.php new file mode 100644 index 0000000..a5b872b --- /dev/null +++ b/application/forms/AuthLogin.php @@ -0,0 +1,38 @@ +<?php + +class Application_Form_AuthLogin extends Zend_Form +{ + + public function init() + { + $this->setName("Login"); + $this->setMethod('post'); + + $this->addElement('text', 'email', array( + 'filters' => array('StringTrim', 'StringToLower'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'E-Mail:', + )); + + $this->addElement('password', 'password', array( + 'filters' => array('StringTrim'), + 'validators' => array( + array('StringLength', false, array(0, 50)), + ), + 'required' => true, + 'label' => 'Password:', + )); + + $this->addElement('submit', 'login', array( + 'required' => false, + 'ignore' => true, + 'label' => 'Login', + )); + } + + +} + |