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.
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.
2 questions:
- 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.
- How can I cleanly create a
controller that pulls the data for
that block and does not create a
page for it.
This seems like it should be simple enough, I'm just not having any luck finding the proper solution on own. Thanks in advance.