I was just wondering the best way/practice to implement menus, headers and footers with changing content such as notifications using codeigniter.
For example say I had an alert within the header menu that linked back to data within a database and I needed to check for changes each time a page is loaded. Initially I thought I could call the header using $this->load->view('header') each time, but this would mean I would need a global function to work out any changes on alerts and then pass that to the header view, each time, not good!
I guess I need a global way to call function that loads the website header (menu) from any controller which works out the content and displays the view accordingly.
so for example a controller that shows blog pages.
in your controller constructor - define the folder your blog view files are in and the template name
in a method when you are ready to call some views
the template itself views/blog_template.php