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')); }
public function init() { parent::init(); // Add minimum age $this->addElement('Integer', 'min_age', array('label' => 'Minimum Age')); }