2014-09-10 32 views
1

我試圖實現CurrencyFormat助手,但是當我實例和對象CurrencyFormat的應用提高了exeption:無法使用的Zend 的I18n 查看助手 CurrencyFormat類

$var new CurrencyFormat(); 

File: 
/site/vendor/zendframework/zend-i18n/Zend/I18n/View/Helper/CurrencyFormat.php     :63 
Message: 
Zend\I18n\View\Helper component requires the intl PHP extension 

在我控制器我包括庫

use Zend\I18n\View\Helper\CurrencyFormat; 

我想我需要添加一些東西在composer.json或配置文件?

謝謝!

回答

2

錯誤很明顯。該組件需要intl PHP extension。這是(通常)與PHP捆綁在一起的東西,需要在您的服務器上啓用。