Home >Backend Development >PHP Tutorial >ThinkPHP--Controller call template

ThinkPHP--Controller call template

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-29 09:14:351027browse

1. The controller calls the view template and the model as follows:

ThinkPHP--Controller call template

APP_DEBUG = true; Debug mode error information is displayed in more detail

2. The relationship between controllers and templates

Usually: There is usually a directory with the same logo as the controller in the view directory, which contains specific template files

such as GoodsController. class.php Control There is a Goods directory in the view directory, which contains the template files corresponding to the Goods controller

ThinkPHP--Controller call template

The above introduces ThinkPHP--controller call template, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn