TP, controller $this-> has to call the current controller method, properties

Source: Internet
Author: User
TP, controller $this-> can only invoke the current controller method, properties.
1: It works yesterday,
PHP Code
  
   
  
               }        }?>

Normally it is a method that can prompt the parent class, and I am only suggesting an index here.
Then I took a look at the TP core directory, there is assign this method, that is, cannot be called.

2: Then I do not prompt the case of manual $this->display, and then prompt the template does not exist,

Template does not exist [D:/WAMP/WWW/TPHP/TPL/HOME/HELLO/INDEX.TPL]

But in this directory, there is indeed such a document.


Also, my action reported red, with the phpstorm, just don't see the error in where ...
The red is not to be prompted after the notice ...

------Solution--------------------
But why not prompt?
Who prompts???
------Solution--------------------
There may be conflicting places, cause it!
------Solution--------------------
PHP I've been doing it for a couple of years, but why are you asking me to look at the erector spinae and see if I can't understand what you're asking? Look, I'm getting old.

discuss

But why not prompt?
Who prompts???

------Solution--------------------
Look at your $this->display (); How to write.
------Solution--------------------
The runtime file is not re-compiled.
  • 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.