Home > php教程 > php手册 > body text

extend跨模块继承base.html

WBOY
Release: 2016-06-07 11:35:44
Original
1914 people have browsed it

不同应用模块目录extend继承同一个公共页面
在thinkphp.cn理找了找没找到如何调用别的模块的base.html。
后台太多东西,于是多建立了几个模块AdminUser Admin AdminInter等。然后想都继承Admin里的Base/base.html;
最后发现可以直接来继承。
thinkphp里有写的。
extend跨模块继承base.html
虽然手册模板集成extend没有写。但是获取模板地址T方法有写。
不知道大家是不是都知道。反正在下唠叨一下。

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

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!