How to change base config dynamic? |
(01-11-2019, 08:40 AM)kilishan Wrote: @ramstudio what's your Browser language set to? The negotiation feature works with the browser to detect the language it should use. It's possible that if you have your browser language set to English than it's negotiating the language and setting it to English, even though the sites default is Russian. In Config\App.php Code: public $defaultLocale = 'en'; In Controller\Home.php Code: <?php namespace App\Controllers; In Views\welcome.php Code: <?php The output comes from the English language file. Although the controller Set Russian. $negotiateLocale When you change the controller true or false - not working. $negotiateLocale When you change the config/App.php true or false - working. |
Messages In This Thread |
How to change base config dynamic? - by ramstudio - 01-09-2019, 12:15 AM
RE: How to change base config dynamic? - by titounnes - 01-09-2019, 09:32 AM
RE: How to change base config dynamic? - by ramstudio - 01-10-2019, 02:01 AM
RE: How to change base config dynamic? - by kilishan - 01-11-2019, 08:40 AM
RE: How to change base config dynamic? - by ramstudio - 01-11-2019, 12:54 PM
RE: How to change base config dynamic? - by kilishan - 01-11-2019, 01:14 PM
RE: How to change base config dynamic? - by ramstudio - 01-11-2019, 01:24 PM
RE: How to change base config dynamic? - by kilishan - 01-11-2019, 02:16 PM
RE: How to change base config dynamic? - by kilishan - 01-11-2019, 11:40 PM
RE: How to change base config dynamic? - by ramstudio - 01-12-2019, 02:38 PM
|