ThinkPHP, file introduction Problems

Source: Internet
Author: User
ThinkPHP introduces file problems. This post was finally edited by jonson_li in 2015-09-0818: 22: 55 and these files were introduced into the action, which is the directory structure of the file. There was no problem with the native call and execution before, the tp method cannot be found. Cannot Use import later. Could you please help? ------ solution --------------

ThinkPHP introduces file problems. At the end of this post, jonson_li introduced these files in the action at 18:22:55 on, which is the directory structure of the file. There was no problem with native call and execution, the tp method cannot be found. Cannot Use import later. Could you please help? ------ solution --------------

ThinkPHP introduces file problems.

This post was last edited by jonson_li on 18:22:55





These files are introduced into the action, which is the directory structure of the file. They were not problematic in the previous native call and execution.
The tp method cannot be found. You cannot use import later. Please help.
------ Solution ----------------------
Row 3, 'dirname (_ FILE _)/Protocol'
Do you think _ FILE _ can be parsed in strings? Split into dirname (_ FILE _). '/protocl'
------ Solution ----------------------
The import parameter is incorrect, and the file placement does not comply with the import conventions.
You can continue to use require, although it does not comply with the TP specification.

Because you did not mention an error when instantiating an object, you can assume that the instantiation is successful.
So it can be presumed that the instantiation statement is included in the embedded file.

The cause of the Call to a member function... error is that the instantiated object is global and cannot be used directly in the tp method (this is a basic variable scope problem)
------ Solution ----------------- [this article from the Internet (http://www.68idc.cn )]-----
The error message indicates that you have called stringToProxy with an empty object, indicating that you have not instantiated an object and see which row of the file contains the error.

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.