take a look at the manual
assuming that both the header page and the footer page have data read from the database (not purely static), how to write it here?
is it impossible to check every time you load?
is it possible to change to the bottom?
$this->load->view("header");
$this->load->view("home", $data);
$this->load->view("footer");