Hi friends,
I use codeigniter. I have footer_view.php, header_view.php and other view php files for pages like aboutus, contactus, etc... for example for about us page, I create model for db actions, than I create a controller to get db variables and send variable to about us view as:
$this->load->view('aboutus/',$data);
everthing is fine until this point. but when I need to get data from db at footer, how will I use mvc way? if I create a footer_model, i cannot make view('footer/') because it is actually a part if page, not a page itself :/
I hope I could explain my issue... I appreciate helps!! Thanks!