当前位置:网站首页>Thinkphp5 frequently asked questions
Thinkphp5 frequently asked questions
2022-07-29 06:44:00 【hljqfl】
1. Controllers in different modules call each other .
use application \ modular \controller\ Controller name
for example :
use app\pub\controller\Header;
$top=new Header;// Call the controller under other modules
$top->info();
2. Render template files under different modules in the controller
return $this->fetch('[email protected]/top');// Module name @view Name of lower folder / Template name
3. In the template file, load the template files under different modules
{include file="[email protected]/top" /}<!-- Module name @view Name of lower folder / Template name -->
3. The template file inherits the template files under different modules
{extend name="[email protected]/base"}<!-- Module name @view Name of lower folder / Template name -->
边栏推荐
- Hongke automation SoftPLC | Hongke kPa modk operation environment and construction steps (2) -- modk operation environment construction
- Day16 set
- Advanced socket programming (options and control information)
- 华为交换机CE12808导入导出配置文件
- Arrays & object & System & Math & random & Packaging
- Leetcode question brushing record
- 5、 Wireless communication network
- Complex floating point multiplication of vivado IP core floating point
- Base64与File之间的相互转化
- Clickhouse failed to import CSV without error but no data
猜你喜欢

How to use SFTP command to access SFTP server on the development board

4、 LAN and man

MQTT服务器搭建以及使用MQTT.fx测试

day03_1_流程控制

四、 局域网和城域网

基于FPGA的IIR型滤波器设计

6、 Network interconnection and Internet

day14_ Unit test & Date common class & String common class

What is the lifecycle of automated testing?

MySQL 事物四种隔离级别分析
随机推荐
案例补充、ATM
What is WAF protection
The performance and viewing methods of websites attacked by DDoS
Hongke education you want to enter the field of TSN? Hongke teaches you how to build TSN test system
6、 Network interconnection and Internet
centos 部署postgresql 13
etcd原理
Design and simulation code of 4-bit subtracter based on FPGA
Hongke white paper | how to use TSN time sensitive network technology to build a digital factory in industry 4.0?
day15_泛型
成长为架构师途中的一些思考
5G服务化接口和参考点
Verilog中for语句的使用
What is the lifecycle of automated testing?
Hog+svm for pedestrian detection
Arrays & object & System & Math & random & Packaging
On defect description style
Ansible(自动化软件)
软件定义边界SDP
day04_数组