I have such function in model.
function news()
{
$data = array(
'title' => $this->input->post('title'),
'date' => $this->input->post('date'),
'newstext' => $this->input->post('newstext'),
);
$this->db->insert('news', $data);
}
And I want use this $data['title']
in another function inside the same model. How can I do that?