Error Call to undefined function CodeIgniter-locale_set_default()

112

//First try enebaling intl in php.ini
//BEFORE
;extension=intl
//AFTER
extension=intl
//if that doesn't work do this hack
//Change the /system/CodeIgniter.php code
//BEFORE
locale_set_default($this->config->defaultLocale ?? 'en');
//AFTER
if( function_exists('locale_set_default' ) ) :
    locale_set_default($this->config->defaultLocale ?? 'en');
    endif;

Comments

Submit
0 Comments