Default data for a view in codeigniter

fredi

New Member
When we load a view, we can pass some dynamic data to it.What I would like to achieve is when the view receives no data, it uses some default data that is loaded from a model (database).The problem is I don't really want to put these statements (that loads the default data) in the view.What is the simplest solution available, without using any extension like modular extension/ separation?Many thanks to you all.
 
Back
Top