Zend_Currency example


    /** * @return Zend_Currency */
    public function factory(Container $container, Zend_Locale $locale)
    {
        $currency = 'EUR';
        if ($container->initialized('shop')) {
            $currency = $container->get('shop')->getCurrency()->getCurrency();
        }

        return new Zend_Currency($currency$locale);
    }
}
Home | Imprint | This part of the site doesn't use cookies.