How does CI introduce common headers and tails that contain dynamic data?

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");
Mar.15,2021

your question concerns the template parsing class of CodeIgniter. You can see the example
ide/libraries/parser.html" rel=" nofollow noreferrer "> https://codeigniter.org.cn/us.
through the link below, but the related notes are also explained

.
CodeIgniter doesn't force you to use this class, because it might be faster to use pure PHP directly in the view. Still, some developers like to use template engines, and they may be working with other designers who are not familiar with PHP.
Menu