Thinkphp template usage problems in thinkphp combined with the smarty template, all have been configured, in IndexAction. class. $ this-& gt; display (& quot; login & quot;) is used in the PHP file, but DefaultAction is another file. class. if the php file is also used, the thinkphp template usage problem occurs.
The smarty template has been configured in thinkphp. class. $ this-> display ("login") is used in the PHP file, but the DefaultAction is another file. class. if PHP files are used in the same way, the following problems may occur:
Fatal error: Call to a member function display () on a non-object in E: \ php \ AppServ \ www \ DLP \ ThinkPHP \ Lib \ Think \ Core \ Action. class. php on line 103
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.