Welcome Guest, Not a member yet? Register   Sign In
Controller for header,footer and sidebar
#5

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
}

}
Reply


Messages In This Thread
RE: Controller for header,footer and sidebar - by XtreemDeveloper - 12-20-2017, 10:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB