[Solved] How to get language id?
Posted: Fri Nov 11, 2011 5:14 pm
I want to use welcome module as custom html on my template. My problem is, i can't display selected language, it always display language with id (language_id) 1. It can't auto switch to another language.
I try to use this code but only get language code, still can't get language_id
My full code:
Code: Select all
$subfooter[1]["description"][1];
Code: Select all
$lang = $this->language->get('code');
My full code:
Code: Select all
<?php $subfooter = $this->config->get('welcome_module');
$subfooter_counter = count($subfooter);
?>
<div class="column">
<?php
if ($subfooter_counter >= 1 && $subfooter[1]["status"])
echo html_entity_decode($subfooter[1]["description"][1]);
?>
</div>
<div class="column">
<?php
if ($subfooter_counter >= 2 && $subfooter[2]["status"])
echo html_entity_decode($subfooter[2]["description"][1]);
?>
</div>