Created
December 12, 2011 20:21
-
-
Save eminetto/1468921 to your computer and use it in GitHub Desktop.
AlunoForm
This file contains hidden or 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 | |
class Application_Form_AlunoForm extends Application_Form_PessoaForm { | |
public function init() { | |
parent::init(); | |
$matricula = new Zend_Form_Element_Text('matricula'); | |
$matricula->setLabel('Matrícula')->setRequired(true)->addFilter('StripTags')->addValidator('NotEmpty'); | |
$submit = new Zend_Form_Element_Submit('submit'); | |
$submit->setLabel('Entrar'); | |
$submit->setAttrib('id', 'Entrar'); | |
$this->addElements(array($matricula,$submit)); | |
//action e method | |
$this->setAction('/index/index')->setMethod('post'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment