Skip to content

Instantly share code, notes, and snippets.

@eminetto
Created December 12, 2011 20:20
Show Gist options
  • Save eminetto/1468916 to your computer and use it in GitHub Desktop.
Save eminetto/1468916 to your computer and use it in GitHub Desktop.
PessoaForm
<?php
abstract class Application_Form_Pessoa extends Zend_Form {
public function init() {
$this->setName('Login');
$username = new Zend_Form_Element_Text('username');
$username->setLabel('Login')->setRequired(true)->addFilter('StripTags')->addValidator('NotEmpty');
$password = new Zend_Form_Element_Password('password');
$password->setLabel('Senha')->setRequired(true)->addFilter('StripTags')->addValidator('NotEmpty');
$this->addElements(array($username, $password));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment