Welcome Guest, Not a member yet? Register   Sign In
How to Add Dynamic Header and Footer
#7

(This post was last modified: 10-19-2018, 12:23 AM by Gurutechnolabs. Edit Reason: some points i want to mention )

Hello,
When you want to set particular(dynamic) header footer in your home, about, contact us that type of pages then you have to set this code in about controller.

class Userlist extends CI_Controller {
public function __construct(){
}
public function index()
{
        $this->load->view('themes/default/templates/common/header', $data);
        $this->load->view('themes/default/templates/common/home', $data);
        $this->load->view('themes/default/templates/common/footer', $data);

}
This code you have to put in about controller and you get results as per your desire.

Hope This will Help you.
Reply


Messages In This Thread
RE: How to Add Dynamic Header and Footer - by Gurutechnolabs - 09-28-2018, 07:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB