Welcome Guest, Not a member yet? Register   Sign In
Access Database in Core class
#4

(This post was last modified: 01-09-2020, 03:33 PM by ZoeF.)

Like @jrklund said a hook could solve this issue.

But I am wondering why you are using JSON and htacces for this? Is there a specific reason for it? If not you could easyly use the pre build language files section of CI. Then you just need to log your user language in the session and set a standard language.

In config.php :: $config['language'] = 'english';

And then add your language files in the system.

example


PHP Code:
$lang["hashtag"] = "#";
$lang["thumb"] = "Thumb"

And then to use it is as simple as

PHP Code:
<?php echo $this->lang->line('hashtag'); ?>

I am honestly wondering why you are over complicating things with json and htacces ...
Reply


Messages In This Thread
Access Database in Core class - by LPena - 01-05-2020, 07:48 AM
RE: Access Database in Core class - by jreklund - 01-05-2020, 11:16 PM
RE: Access Database in Core class - by keklein - 01-06-2020, 10:21 AM
RE: Access Database in Core class - by customy - 04-15-2020, 03:15 AM
RE: Access Database in Core class - by ZoeF - 01-09-2020, 03:32 PM
RE: Access Database in Core class - by maxedip556 - 02-17-2020, 03:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB