Welcome Guest, Not a member yet? Register   Sign In
multilevel array in view...
#1

[eluser]henry178[/eluser]
Hi,

I have this language file:

Code:
$translations = array();
$translations['en']['aaa'] = 'restaurant';
$translations['en']['bbb'] = 'breakfast room';
$translations['en']['ccc'] = 'disabled access';
$translations['en']['ddd'] = 'lift';
$translations['en']['eee'] = 'Wireless Internet';

ecc

this is my control:

Code:
public function index()
    {

        $data['lingua'] = $this->lang->load(DEFAULT_LANGUAGE, NAME_LANGUAGE);
        $data['lingua'] = $this->lang->language;


        $this->load->view('template1/index',$data);
    
    }


question: in my view.... how to echo the language array???
#2

[eluser]ipsod[/eluser]
Code:
print_r($lingua);
in the view




Theme © iAndrew 2016 - Forum software by © MyBB