[eluser]SpooF[/eluser]
[quote author="Madmartigan1" date="1241814507"]Hello,
I'm fairly new to CI and wondering what the best way to do this is.
I have a controllers/models/views set up for viewing/editing a database table called "events". OK, I have a view for events that shows the entire list.
What I would like to do is show the list on every page in my app (in a sidebar). If I just load the view file, the db values are of course not getting passed to it because the conroller/model isn't loaded. I'm not restricted to using any particular method, I'm just wondering the best way to do it.
Do I have to write a separate method/view? Normally (without CI) I would just "include" the event list file, which would have already "included" the sql stuff.
I'm sure the answer is basic CI usage, so thanks in advance.[/quote]
Tell me if Im overlooking this but wouldn't you simple just auto load your model and then call the request in your constructor and add it to your data array (using the standard view loader)?