search
HomePHP FrameworkThinkPHPThinkphp5 front-end code is output as is

The following tutorial column will introduce to you the output of the Thinkphp5 front-end code as it is. I hope it will be helpful to friends in need!

tp5 front-end code outputs the html source code as it is and the source code is output Thinkphp5 front-end code is output as is

When using the tp5 framework for project development, render the front end The source code is output when rendering the page, and the entire html code is output as it is.

When using the tp5 framework for project development, the source code is output when rendering the front-end page, and the entire html code is output as it is. Output, how to solve it? Share it with everyone, I hope it will be helpful to everyone.

Screenshot

1. I conclude that maybe my skills are not good enough. To put it bluntly, that is The technology is not very good yet, which leads to this problem, or the framework is not understood enough,

Thinkphp5 front-end code is output as is2. It may be a version problem, because every time the TP framework is updated, many of its methods are rewritten. , for example, tp3.2 and tp5 have changed a lot, and for example, tp6 even the database files are different

Although these changes are to make user development more convenient, there are still people who are not familiar with it. It is not suitable for you, and thinkphp official does not tell you where you have changed, what methods have been changed, and how to use it. In this case, everyone needs to explore it by themselves, so it is necessary to share it with everyone

The next step is Let me tell you how to modify

. You only need to modify this code to

   return view("");
Thinkphp5 front-end code is output as is and you're done.

Related recommendations:

The latest 10 thinkphp video tutorials

The above is the detailed content of Thinkphp5 front-end code is output as is. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:ympfb. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.