There is such a piece of code, everything seems to work, but there is one thing but the function file_get_contents does not want to read the code from the php file, reads it as a comment
 $header = file_get_contents('tpl/header.php'); This code is needed in order not to write to a template, of type include('tpl/header.php') , but simply put
 <?=$header?> Mostly for beauty!
