One module you can use the template theme feature if you need to support multiple sets of template files. By default, the template theme feature is not turned on, and if you need to turn it on, set the default_theme parameter:
// Set the default template theme ' default_theme ' = ' default '
After using the template theme, you need to create the corresponding theme directory below the view directory, and the template file is just a single layer of content compared to the case where the template theme is not enabled:
// before the template theme is enabled view/Default// enable template theme
Before the view renders the output, we can change the template theme that needs to be used by dynamic settings.
// dynamically changing template themes in the controller $this->theme (' Blue ')->display (' Add ');
thinkphp Learning Notes-Template Themes