04-10-2011, 07:49 AM
[eluser]Svante Hansson[/eluser]
I'm in the process of converting a old sluggish website to using the CI framework. I've currently stripped down the frontpage into 8 views (header, previous article, highlight, adblock and so on) so I can just include them whenever I want to use them (depending on page). I'm trying to figure out the best way of populating those views without having to clutter up the controller with 4~ new modules everytime I load a page. I would like some way of loading the view with some sort of default data that's loaded from the database.
Any ideas?
Kind regards,
Svante
I'm in the process of converting a old sluggish website to using the CI framework. I've currently stripped down the frontpage into 8 views (header, previous article, highlight, adblock and so on) so I can just include them whenever I want to use them (depending on page). I'm trying to figure out the best way of populating those views without having to clutter up the controller with 4~ new modules everytime I load a page. I would like some way of loading the view with some sort of default data that's loaded from the database.
Any ideas?
Kind regards,
Svante