Пример #1
0
 public function init()
 {
     parent::init();
     // Add currencies
     $locale = Zend_Registry::get('Zend_Translate')->getLocale();
     $this->_currencies = $currencies = Zend_Locale::getTranslationList('NameToCurrency', $locale);
     uksort($currencies, array($this, '_orderCurrencies'));
     $this->addElement('Select', 'unit', array('label' => 'Currency Type', 'multiOptions' => $currencies, 'value' => 'USD'));
 }
Пример #2
0
 public function init()
 {
     parent::init();
     // Add minimum age
     $this->addElement('Integer', 'min_age', array('label' => 'Minimum Age'));
 }