[eluser]überfuzz[/eluser]
At the moment I'm sorting the data like this, to be able to echo it out in the view-file.
Code:
$temp_news = $this->news->get_one_news($key); //array
$this->data['id'] = $temp_news['ID'];
$this->data['event'] = $temp_news['event'];
$this->data['datum'] = $temp_news['datum'];
//etc...
$this->load->view('login/template', $this->data);
I tried echoing it out but passed as an array, in the data-array. Like this:
Code:
$this->data['news'] = $this->news->get_one_news($key); //array
But I don't know how to echo it in the view-file.
get_one_news() is returning an array now, is it easier to work with an object?
Code:
return $query->row_array();
return $query->row();