title: Creating Block/Modules in Code Igniter
body: <p>So far I've been enjoying using CodeIgniter to create some simple web apps (really just learning the framework), but I can't figure out an easy way to create a block/module.</p>
  
  <p>I would like to have have "Recent Images" block that I can drop on any page on the site without duplicating the query in each page's controller and passing it to the template with $vars. </p>
  
  <p><strong>2 questions:</strong></p>
  
  <ol>
  <li>I am using partials in the views
  already, but how do I write a
  partial that pulls from a controller
  other than the one specified by the
  url. </li>
  <li>How can I cleanly create a
  controller that pulls the data for
  that block and does not create a<br>
  page for it.</li>
  </ol>
  
  <p>This seems like it should be simple enough, I'm just not having any luck finding the proper solution on own. Thanks in advance.</p>