Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. <?php
  2.  
  3. class Application_Form_Address extends Zend_Form_SubForm
  4. {
  5.    
  6.     public function init()
  7.     {
  8.         $this->addElements(array(
  9.             $name = new Zend_Form_Element_Text('name'),
  10.             $street = new Zend_Form_Element_Text('street'),
  11.             $city = new Zend_Form_Element_Text('city'),
  12.             $psc = new Zend_Form_Element_Text('psc'),
  13.             $submit = new Zend_Form_Element_Submit('submit')
  14.         ));
  15.        
  16.         $name->setLabel('Název adresy')
  17.              ->setRequired();
  18.         $street->setLabel('Ulice');
  19.         $city->setLabel('Město');
  20.         $psc->setLabel('PSC');
  21.         $submit->setLabel('Uložit');
  22.        
  23.     }
  24.  
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement