Welcome Guest, Not a member yet? Register   Sign In
MULTI TEMPLATES?
#4

[eluser]umefarooq[/eluser]
yes let her add both text but you can check that which language you have select right now then you can display that language text on the page you displaying. with the help of following code you can check which language is.

Code:
$this->uri->segment(1);

if you saving data in database let it be there

Code:
$lang = $this->uri->segment(1);
if($lang == 'en')
$data['content'] = $row->en_content;
else
$data['content'] = $row->sv_content;

$this->load->view('home',$data);

no need to create more view separately for both languages you can use same views


Messages In This Thread
MULTI TEMPLATES? - by El Forum - 10-31-2009, 09:38 PM
MULTI TEMPLATES? - by El Forum - 10-31-2009, 09:57 PM
MULTI TEMPLATES? - by El Forum - 10-31-2009, 10:05 PM
MULTI TEMPLATES? - by El Forum - 10-31-2009, 10:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB