How to add links that select the preferred language (CodeIgniter's Language Class)?

Posted by janoChen on Stack Overflow See other posts from Stack Overflow or by janoChen
Published on 2010-05-02T09:25:45Z Indexed on 2010/05/02 9:27 UTC
Read the original article Hit count: 126

Filed under:
|

I just finished this tutorial:

http://codeigniter.com/wiki/Internationalization_and_the_Template_Parser_Class/

but now I want some links to change english to spanish

I know how to change it by modifying the controller example.php:

# Load language
$this->lang->load('example', 'english');

But I can't figure out how to do that in the view file example.php

What's the simplest and best way of doing this?

© Stack Overflow or respective owner

Related posts about codeigniter

Related posts about language