I tried --> if ($lang == 'en') { bla bla bla }
if ($lang == 'id') { bla bla bla }
... but got error --> Notice: Undefined variable: lang.
Plz tell me the right code..

Code: Select all
if ($this->config->get('config_language') == 'en') {
}
Thx Q...u really really help me...Qphoria wrote:This is the exception to the rule on lookups. It used to be (and should still be) $this->language->getCode() but was changed for no good reason in more recent versionsCode: Select all
if ($this->config->get('config_language') == 'en') { }
Users browsing this forum: No registered users and 21 guests