AbanteCart Community
AbanteCart Development => Development Help Needed => Topic started by: natdroid on June 02, 2014, 04:13:51 AM
-
Hello. I've got a question. How to call global language definitions from extension?
-
Hello,what do you mean by global language definition?
-
Hello. I've got a question. How to call global language definitions from extension?
You can access only english (english.xml) block globally.
This is done by accessing language object $this->language->get('text_key')
This is if you are inside controller extended class.
Other languages modules you can load with $this->loadLanguage('section/file');
After you load you can call same above get() method to get new loaded text_keys.
-
Thanks