PHP Fatal error: You must enable the intl extension to use CakePHP. in C:\xampp\htdocs\Cakecrud\config\requirements.php on line 31

主宰稳场 提交于 2020-07-16 09:40:25

问题


I have enabled both in php.ini

extension= intl
extension= php_intl.dll

Still the error is same when I run the command on cmd

Cake bake all students


回答1:


It sounds like you might have added the intl exension to the wrong php.ini file.

It needs to be added to the web php.ini file, not cli.

To check what extensions are loaded for the web, write phpinfo();exit; in a PHP file then hit hit.

To see whats loaded in PHP cli (where you may have added it by mistake), run php -m at a terminal.



来源:https://stackoverflow.com/questions/62872536/php-fatal-error-you-must-enable-the-intl-extension-to-use-cakephp-in-c-xampp

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