Welcome Guest, Not a member yet? Register   Sign In
Load custom settings from database in all pages
#5

[eluser]ivantcholakov[/eluser]
I also have a version that supports internationalization, but it is platform specific: https://github.com/ivantcholakov/starter...ttings.php.

For example, you may have settings within the database like 'site_name_en', 'site_name_fr', 'site_name_bg', ... You can get them this way:

Code:
$site_name = $this->settings->lang('site_name'); // Gets the value for the current language, let it be 'english'.
$site_name = $this->settings->lang('site_name', 'french'); // Gets the value for the specified language.


Messages In This Thread
Load custom settings from database in all pages - by El Forum - 08-10-2014, 07:03 AM
Load custom settings from database in all pages - by El Forum - 08-10-2014, 07:26 AM
Load custom settings from database in all pages - by El Forum - 08-10-2014, 09:47 AM
Load custom settings from database in all pages - by El Forum - 08-10-2014, 10:57 AM
Load custom settings from database in all pages - by El Forum - 08-10-2014, 11:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB