title: Zend Framework: right way to retrieve data from database
body: <p>I am working on a project with zend framework and i need your advise on the right way to fetch data from the database.</p>
  
  <p>Am making use of Zend_Layout to load my template. The appropriate view is then loaded into the template. </p>
  
  <p>On the template, there is supposed to be a section that displays data from the database (e.g Categories). Since i am using one template, the data will be displayed on every page requested irrespective of the controller or action called. </p>
  
  <p>I know its not a good practise to fetch the data from the template and it wouldn't be a good idea to fetch the data from each action executed. I dont know if the right thing to do is to use helpers to fetch the data from the database, but wouldn't that go against the whole idea of MVC. </p>