AbanteCart Development > Development Help Needed
Global language definitions
(1/1)
natdroid:
Hello. I've got a question. How to call global language definitions from extension?
yonghan:
Hello,what do you mean by global language definition?
abantecart:
--- Quote from: natdroid on June 02, 2014, 04:13:51 AM ---Hello. I've got a question. How to call global language definitions from extension?
--- End quote ---
You can access only english (english.xml) block globally.
This is done by accessing language object
--- Code: ---$this->language->get('text_key')
--- End code ---
This is if you are inside controller extended class.
Other languages modules you can load with
--- Code: ---$this->loadLanguage('section/file');
--- End code ---
After you load you can call same above get() method to get new loaded text_keys.
natdroid:
Thanks
Navigation
[0] Message Index
Go to full version