[eluser]vitoco[/eluser]
i don't know if this may help, but in this line
Code:
$this->load->view('home_page', array('X_data' => $this->_data('X'), 'Y_data' => $this->_data('Y')));
you call the "_data" function twice, so the model it's loaded two times also...you get the "... on a non-object" error in the first or second call ???