Codeigniter Language Helper
http://codeigniter.com/user_guide/helpers/language_helper.html
We can simplify
echo $this->lang->line();
to
echo lang('language_key', 'form_item_id');
Updating Preferences/Settings
Adding all the webshop languages in the back-end so that it will be automatically used.
External link in menu
$uri = $menu['page_uri'];
$external_link = 'http';
$pos = strpos($uri, $external_link);
// Note our use of ===. Simply == would not work as expected
// because the position of 'a' was the 0th (first) character.
if ($pos === false) {
echo anchor ("welcome/pages/".$menu['page_uri'], $menu['name']);
} else {
echo anchor ($menu['page_uri'], $menu['name']);
}


















