thinkphp Template Output Issues

Source: Internet
Author: User
thinkphp Template Output

There are several methods in a searchaction, the index () method, the search () method, the Choose () method. The form form submitted to the search () method can be displayed correctly, using the index or choose method to report an error. There are no problems with these three methods. When exporting a template:
$this->display (); Use this sentence to error, can not find the template
$this->show (' OK '); With this sentence can be displayed OK, no error, but only show ok these two words
What's going on? What statement should I use?


Reply to discussion (solution)

Please put out your error message.

Please put out your error message.

If you change to show (' OK '), only the word "OK" is displayed.

Please put out your error message.
When the problem is found, the display () is displayed (' Search ') as normal. I also have a question that is thinkphp associated with the query. The Association of Hospitals and departments, level two Guan, but the level Three association will not. I've already replied to you on that post.


Please put out your error message.
When the problem is found, the display () is displayed (' Search ') as normal. I also have a question that is thinkphp associated with the query. The Association of Hospitals and departments, level two Guan, but the level Three association will not. I've already replied to you on that post.
have replied.

  • Contact Us

    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

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.