thinkphp3.0 output Repeat two times solution, thinkphp3.2_php tutorial

Source: Internet
Author: User

thinkphp3.0 output repeated two times the solution, thinkphp3.2


The example in this paper describes the resolution of the thinkphp3.0 output repeated two times. Share to everyone for your reference. Here's how:

The main entry file is as follows:
Copy the Code code as follows: <?php
Define (' App_name ', ' Admin ');//define project name
Define (' App_path ', './admin/');//define the project storage path
Define (' Think_path ', './thinkphp/');//define the path where the thinkphp core files are located
Require Think_path. ' thinkphp.php ';//import Core file
App::run ();
?>
Use the above code to write the entry file, but the input result is repeated two times.

It turns out that because the thinkphp3.0 portal file is more simplified, by default, only one line of code will be added, App::run (), and this line of code commented out or removed is normal.
Copy the Code code as follows: <?php
Define (' App_name ', ' Admin ');//define project name
Define (' App_path ', './admin/');//define the project storage path
Define (' Think_path ', './thinkphp/');//define the path where the thinkphp core files are located
Require Think_path. ' thinkphp.php ';//import Core file
App::run ();
?>

It is hoped that this article is helpful to the PHP program design based on thinkphp framework.

http://www.bkjia.com/PHPjc/930188.html www.bkjia.com true http://www.bkjia.com/PHPjc/930188.html techarticle thinkphp3.0 output repeated two times the solution, thinkphp3.2 This example describes the thinkphp3.0 output repeated two times the solution. Share to everyone for your reference. The specific method is as follows: ...

  • 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.