Home >Backend Development >PHP Tutorial >ThinkPHP--Controller call template
1. The controller calls the view template and the model as follows:
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
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.