setLocale() doesn't change the language set by browser |
To set the language you need to do this:
PHP Code: $language = \Config\Services::language(); That way you won't need to set the language every single time. Also, I think that this function would do the validation for you. |
Welcome Guest, Not a member yet? Register Sign In |