Thinkphpinclude variables cannot output things. in this case, I wrote two methods head () tui () index () in my indexAction () both methods are output to their respective templates (the template is also displayed) and then in index () the includehead and tui in the template, and then the head content output the tui content value. the thinkphp include variable of the text tui cannot be output.
This is the case. under my indexAction, I wrote two methods head () tui () index ()
The two methods are output to their respective templates (the template is also displayed), then include head and tui in the index () template, and an accident occurs.
The head content outputs the tui content value, and the text tui variables are not output.
------ Solution --------------------
We do not recommend that you write the method into the model if you want to call the head and tui variables.
------ Solution --------------------
If you wrap a file, you have to write it in the same model. if you include header.html or foot.html, you must write it in the index,
Public function index (){
// Write the header and foot here
$ This-> display ();
}