[eluser]marcin_koss[/eluser]
In your Model class you're echoing the content. Instead you're supposed to assign that data to some variable and return it.
Then in controller you would assign it to $data['result'] = $this->Db->getContent("Home");
In your view file use echo $result wherever you want it to appear.
Code:
function index()
{
$this->load->model('Db');
$data['result'] = $this->Db->getContent("Home");
$this->load->view('header.inc');
$this->load->view('nav.inc');
$this->load->view('page_view' $data); // Here's the page where you want to display your data
$this->load->view('footer.inc');
}
Check the User Guide and the introductory movies that are available on CI website