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