title: CodeIgniter - every controller need 3 variables passed to views
body: <p>I'm in the middle of cleaning up a web app written in CodeIgniter. Each main view has a sidebar that displays some common database driven data - recent updates, news, etc. I have the queries cached to help speed things up a bit but I'm also looking for a better way to make this happen.</p>
  
  <p>Right now each controller loads the model, loads up the <code>$data</code> array and passes it to the view.</p>
  
  <p>I've extended the main CI controller class and am not loading up the data in the constructor which has simplified the code a bit but I'm still left feeling like there should be a better way. Any suggestions?</p>