问题
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