Class 'Locale' not found - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Class 'Locale' not found (/showthread.php?tid=76538) Pages:
1
2
|
RE: Class 'Locale' not found - vitnibel - 05-26-2020 Perhaps then you do not need to use the Time class to format the date. Instead, you can use the standard PHP functions of date and time. PHP Code: public function getUpdateAt(string $format = 'Y-m-d H:i:s') RE: Class 'Locale' not found - maaa.om - 05-27-2020 (05-26-2020, 07:09 PM)vitnibel Wrote: Perhaps then you do not need to use the Time class to format the date. Instead, you can use the standard PHP functions of date and time. Still I got (Class 'Locale' not found), even I didn't use anything related to date I got same error, for example like this: PHP Code: public function getUpdatedAt() RE: Class 'Locale' not found - vitnibel - 05-27-2020 As it turned out, any call to the magic __get () method of the Entity class associated with dates leads to a call to the mutateDate() function, which in turn leads to a call to the Locale class. Therefore, without installing the Intl extension can not do. |