Controller for header,footer and sidebar |
You can manage header, footer, sidebar by method calling.
class Blogs extends CI_Controller { function __construct() { Parent::__construct(); } public function index() { $output['main_page'] = array(); $this->load->view('front/includes/header', $output); //Load header $this->load->view('front/blogs/index'); //Load middle content of page $this->load->view('front/includes/footer'); // Load footer } } |
Messages In This Thread |
Controller for header,footer and sidebar - by ktmonty - 08-11-2017, 05:52 AM
RE: Controller for header,footer and sidebar - by Wouter60 - 08-11-2017, 08:24 AM
RE: Controller for header,footer and sidebar - by rtenny - 08-11-2017, 08:38 AM
RE: Controller for header,footer and sidebar - by chaxvier07 - 11-04-2017, 04:47 AM
RE: Controller for header,footer and sidebar - by XtreemDeveloper - 12-20-2017, 10:48 AM
|