Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Zend framework2 无法使用Zend\I18n\View\Helper\CurrencyFormat类_Zend Framework2 - Fatal编程技术网

Zend framework2 无法使用Zend\I18n\View\Helper\CurrencyFormat类

Zend framework2 无法使用Zend\I18n\View\Helper\CurrencyFormat类,zend-framework2,Zend Framework2,我正在尝试实现CurrencyFormat帮助程序,但当我创建CurrencyFormat的实例和对象时,应用程序会引发一个验证: $var new CurrencyFormat(); File: /site/vendor/zendframework/zend-i18n/Zend/I18n/View/Helper/CurrencyFormat.php :63 Message: Zend\I18n\View\Helper component requires

我正在尝试实现CurrencyFormat帮助程序,但当我创建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或config文件中添加一些内容


谢谢

错误很明显。该组件需要。这是(通常)与PHP捆绑在一起的东西,需要在服务器上启用