This article describes how to repeat thinkphp3.0 output twice. The solution is to convert ThinkPHP2.x to 3. x frequently encounters problems. For more information about thinkphp3.0 output, see the example in this article. Share it with you for your reference. The specific method is as follows:
The main portal file is as follows:
The Code is as follows:
<? Php
Define ('app _ name', 'admin'); // define the project NAME
Define ('app _ path', './Admin/'); // defines the Project Storage PATH
Define ('Think _ path', './ThinkPHP/'); // defines the PATH of the ThinkPHP Core File
Require THINK_PATH. 'thinkphp. php'; // import the Core File
App: run ();
?>
Use the preceding Code Composition entry file, but repeat the input results twice.
It turns out that the thinkphp3.0 portal file is simpler. By default, you only need to add a line of code to comment out or remove the App: run (); this line of code is normal.
The Code is as follows:
<? Php
Define ('app _ name', 'admin'); // define the project NAME
Define ('app _ path', './Admin/'); // defines the Project Storage PATH
Define ('Think _ path', './ThinkPHP/'); // defines the PATH of the ThinkPHP Core File
Require THINK_PATH. 'thinkphp. php'; // import the Core File
// App: run ();
?>
I hope this article will help you design PHP programs based on the ThinkPHP framework.