hi
Working on a bilingual website on CodeIgniter. The lang variable is being passed properly. for example en, fa
What I wanna do in my view is to concatenate the language to my query result to display that language’s part only.
For example to display title:
$myLng=$this->lang->lang();
<? foreach($query->result() as $row): ?>
<?=$row->title_.$myLng;?>
<? endforeach?>
I echo $myLng and it always corresponds to my selected language. but for some reason I can’t attach it to my query result.
for example in the single langugae version it is :
<? foreach($query->result() as $row): ?>
<?=$row->title_en;?>
<? endforeach?>
Any ideas what I’m doing wrong?
thanks