The view layer uses the template function of ThinkPHP. The template of ThinkPHP not only allows the user to use the template tag to realize the code function of PHP, but also allows the user to directly use the PHP tag code to realize some complex functions. Finally, the template engine of ThinkPHP converts the template into a PHP file, and then improves the access efficiency through the caching mechanism.