Welcome Guest, Not a member yet? Register   Sign In
Why doesn't $request->getLocale() return the correct locale any more (since v.4.3)?
#5

(This post was last modified: 08-30-2023, 11:42 AM by gosocial2.)

Sorry, but the problem persists. I not only tried all the steps in the documentation, but also the tutorial above. Working app based on CI 4.2.x is at https://ccpdemo2.ozar.net - it can be tested by selecting a language from the dropdown in the right hand side of the top navbar. When all the code in this app is copied over to CI 4.3.x, it breaks and language selection menu always takes the user to an English page. 

May I request, those who assert no such problem exists, describe all the steps to reproduce a working solution testing also with the Safari browser?

Can't do withouts:

The URLs to be tested need to be created using routes that will reside in the below route groups.

PHP Code:
$routes->group('{locale}/cp', [], function($routes) {
....
}
  
or

PHP Code:
$routes->group('{locale}/admin', [], function($routes) {
....


CodeIgniter Wizard (CRUD code generator for Mac) instantly scaffolds Bootstrap-based web applications with an administrative interface (admin templates include Bootstrap5)

Reply


Messages In This Thread
RE: Why doesn't $request->getLocale() return the correct locale any more (since v.4.3)? - by gosocial2 - 08-30-2023, 12:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB