I like to store my language lines in variables or array.
And I have this problem. How can I echo $data["menu_production"]
instead of $this->lang->line("menu_production");
? It works when I echo ($this->lang->line("menu_production");)
but not with $data
or other variable. In my controller I call this function:
function index() {
$data["menu_production"] = $this->lang->line("menu_production");
$this->load->view('menu', $data);
}