Home >Backend Development >PHP Tutorial > thinkphp模板输出有关问题

thinkphp模板输出有关问题

WBOY
WBOYOriginal
2016-06-13 12:35:55969browse

thinkphp模板输出问题
一个SearchAction里有多个方法,index()方法、search()方法、choose()方法。form表单提交到search()方法能正常显示,用index或choose方法就报错。 这三种方法没有问题。输出模板的时候:
 $this->display(); 用这句话就报错,找不到模板
 $this->show('OK');  用这句话就能显示OK,不报错,但是只显示OK这两个字
这是怎么回事?该用什么语句?

thinkphp 模板输出
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn