• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to store localization in seesion or cookie

#1
I am developing a multi language app in ci4 i have done fully with the en version and i try to translate to fr so when i use route method to push the lang to the url e.g http://site.com/en/page it broken my app because the en is detected the $this->request->uri->getSegment()1;

This method will crash my app because there is a login used in the app using the getSegment method so i was think if the is a way to store the supported lang in session or cookie.

Thanks.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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