public function init() { $currencies = Axis_Collect_Currency::collect(); if (count($currencies) <= 1) { return false; } $this->setFromArray(array('currencyCode' => Axis::single('locale/currency')->getCode(), 'currency' => $currencies)); return true; }
/** * * @param string $value * @param Zend_View_Interface $view * @return string */ public static function getHtml($value, Zend_View_Interface $view = null) { return $view->formSelect('confValue', $value, null, Axis_Collect_Currency::collect()); }