• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
This is a bug or feature ?

#4
PHP Code:
// Config/App.php
public $defaultLocale 'en';

public 
$negotiateLocale true;

// in controller
$locale $this->request->getLocale();

// or
$locale service('request')->getLocale(); 

It's doing that because you may not have set the default locale by using getLocale() method.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
This is a bug or feature ? - by Digital_Wolf - 07-26-2019, 02:11 AM
RE: This is a bug or feature ? - by MGatner - 07-28-2019, 07:52 AM
RE: This is a bug or feature ? - by Digital_Wolf - 07-28-2019, 09:55 AM
RE: This is a bug or feature ? - by InsiteFX - 07-28-2019, 10:53 AM
RE: This is a bug or feature ? - by Digital_Wolf - 07-28-2019, 11:30 AM
RE: This is a bug or feature ? - by Digital_Wolf - 07-28-2019, 12:03 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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