A problem
After setting up an online test site for the company, enter "http://xxx.xxx.xxx/index.php" in the browser address bar, and the page shows nothing. Bring up the browser developer tool to view, the HTTP status code is 200, indicating that the client request is successful, but why does the page show nothing?
Two Solutions
First, add a test statement to the first line of the index.php file in the root directory
Echo exit;
Refresh the browser and discover the browser output ' Hello world! ', stating that the index.php file is properly executed.
So the question is where the template file is loaded. Continue debugging, test two times before and after index.php load the template file, thus determining the problem is where the template file is loaded.
After viewing the template function source code, determine the cause of the problem is that the compilation file does not exist.
The issue is resolved by creating a compiled file.
About resolving HTTP status code 200,php file has output, but does not display template file problems