-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: CodeIgniter\I18n -> Class 'Locale' not found #3294
Comments
You need to have the |
@paulbalandan Thank you for that , did not realize it via the docs, might be handy to mention it in docs, if it is somewhere I missed it sorry, thanks again.
|
For extra reference thanks to paulbalandan comment I found the php manual doc entry for it |
It's okay. It is stated in the README. https://github.com/codeigniter4/CodeIgniter4#server-requirements |
Thank you again @paulbalandan for the quick help. Then all good I just missed it. Thanks again |
Thanks |
I'm facing this problem after setting vhost, if i run serve with spark cml: php spark serve it's ok, when i try using vhost, i get locale class not found. |
You need to have the |
@huynhminhsangit you need to enable extension in php.ini for php-cli. There will be 2 php.ini files. You have to do in php-cli too. Probably Location should be like this /etc/php/8.0/cli/php.ini |
You need to know where the |
Describe the bug
Was looking at this issue
#1807
when I tried to test his samples, I then looked at docs on how to load the class
https://codeigniter4.github.io/CodeIgniter4/libraries/time.html?highlight=settimezone
But instead I got the error
Class 'Locale' not found
Checked the source and there is nothing named Locale file or Text wise for a class
IncomingRequest has this logic in there code, but Time.php uses it directly
A clear and concise description of what the bug is.
CodeIgniter 4 version
4.0.3
Affected module(s)
Time.php , part of CodeIgniter\I18n
Expected behavior, and steps to reproduce if appropriate
Should load the file
The text was updated successfully, but these errors were encountered: