Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Application_Form_Address extends Zend_Form_SubForm
- {
- public function init()
- {
- $this->addElements(array(
- $name = new Zend_Form_Element_Text('name'),
- $street = new Zend_Form_Element_Text('street'),
- $city = new Zend_Form_Element_Text('city'),
- $psc = new Zend_Form_Element_Text('psc'),
- $submit = new Zend_Form_Element_Submit('submit')
- ));
- $name->setLabel('Název adresy')
- ->setRequired();
- $street->setLabel('Ulice');
- $city->setLabel('Město');
- $psc->setLabel('PSC');
- $submit->setLabel('Uložit');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement