News:

AbanteCart v1.4.2 is released.

Main Menu

Global language definitions

Started by natdroid, June 02, 2014, 04:13:51 AM

Previous topic - Next topic

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

#2
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?

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. 
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Forum Rules Code of conduct
AbanteCart.com 2010 -