• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change base config dynamic?

#9
Doh! I got to thinking about this after the previous posts and remembered that the request object has a setLocale() method. So, from your controllers you should be able to simply do:

Code:
$this->request->setLocale('ru');

As long as that is set prior to using a language string I believe it should do what you're looking for.
Support Development  • Practical CodeIgniter 3  • Vulcan - CLI Tools for CI4
Reply


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 kilishan - 01-11-2019, 11:40 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.