Unable to use Zend\I18n\View\Helper\CurrencyFormat class

我与影子孤独终老i 提交于 2019-12-13 00:56:09

问题


I'm trying to implement the CurrencyFormat Helper, but when I instance and object of CurrencyFormat the application is raising an exeption:

$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

In my controller I'm including the library

use Zend\I18n\View\Helper\CurrencyFormat;

I guess I need to add something in composer.json or config files?

Thanks!


回答1:


The error is pretty clear. The component requires the intl PHP extension. This is something that is (usually) bundled with PHP and needs to be enabled on your server.



来源:https://stackoverflow.com/questions/25771519/unable-to-use-zend-i18n-view-helper-currencyformat-class

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!