How does smarty reference the console and the template file through the console?

other templates referenced in the

template are {include file= "header.html"}
for example, index.php
template is $smarty- > display ("index.html"),
then the header template file {include file= "header.html"},

is referenced in index.html.

so if, in this header.html, there are some parameters that need to be controlled by his back-end console, that is, header.php, in this case, how can index.html refer to header.php, and let header.php output the template $smarty- > display ("header.html")?

how to deal with this situation? Thank you very much for your advice.

Mar.10,2021
Menu