search
Homephp教程php手册多分组 多主题 跨分组模板文件引用问题

1、开启了分组
2、开启了主题

TP3.1原本只支持到主题 而且不兼容多分组 多主题并存
1、开启了分组
2、开启了主题

跨分组调用模板文件。
如:在NEWS分组模板页面调用HOME分组公共模板文件

TP3.1原本只支持到主题 而且不兼容多分组 多主题并存

修改文件
TP3.1 Lib/Template/ThinkTemplate.class.php 678行后添加if(!empty($paths)) {// 设置模板分组<br>                     $path = APP_PATH.C('APP_GROUP_PATH').C('TMPL_FILE_DEPR').array_pop($paths).'/Tpl/'.THEME_NAME.'/';<br>                 }

AD:真正免费,域名+虚机+企业邮箱=0元

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

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

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.