Maybe a HMVC structure would have been best when I look back.
I load the following views in every controller.
$this->load->view('header');
$this->load->view('DEPENDING');
$this->load->view('header');
In my header-view I have a menu which I show Home | Inbox | Contact us and so on. Now I want to load how many new messages you have like this Home | Inbox (4) | Contact. If Im not wrong the 4 most be loaded thorugh a query every time. Which I then need to include a call to a model in EVERY controller. Like e.g.
$inbox['new_messages'] = $this->Call_the_model->get_new_messages(); // user id go through session
$this->load->view('header', $inbox);
$this->load->view('DEPENDING');
$this->load->view('header');
Am I right? Is there simple solution for me to use - even if Im not using HMVC?