thinkphp include variable cannot be exported
The thing is, I've written 2 methods under my indexaction. Head () Tui () index ()
2 methods are output to their templates (the template is also shown) and then include head and Tui in the template for index () and then something goes wrong.
The content of the head is output the content value of TUI output the text of TUI's variables are not output to solve
------Solution--------------------
This is not recommended. If you want to invoke the head and TUI variables, you write the method into the model.
------Solution--------------------
Include the file, or you have to write in the same model, such as index, whether you include header.html or foot.html, must be written in index,
Public Function index () {
Here's the header and the foot related.
$this->display ();
}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service