当前位置:网站首页>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 | modk operation environment and construction steps (1) -- Introduction to operation environment
- Ram block memory generator of vivado IP core
- 10种常见的软件架构模式
- Hongke share | bring you a comprehensive understanding of "can bus error" (II) -- can error types
- Hongke shares | how to test and verify complex FPGA designs (1) -- entity or block oriented simulation
- 华为交换机CE12808导入导出配置文件
- LDAP简述及统一认证说明
- 将源码包转换为rpm包
- Ultra low cost DDoS attacks are coming. See how WAF protects Jedi
- Use of for statement in Verilog
猜你喜欢

Conversion of fixed-point number to floating-point number of vivado IP core

day17_ Under collection

Hongke automation SoftPLC | Hongke kPa modk operation environment and construction steps (2) -- modk operation environment construction

10种常见的软件架构模式

Arrays&Object&System&Math&Random&包装类

三、广域通信网

软件定义边界SDP

day02_ Basic grammar

将源码包转换为rpm包

AbstractQueuedSynchronizer(AQS)之 ReentrantLock 源码浅读
随机推荐
finally 和 return 的执行顺序
day10_ Exception handling & enumeration
Floating point multiplication and division of vivado IP core floating point
After the EtherCAT master station is disconnected, how to ensure that the target system is not affected by the fault?
Complex floating point division of vivado IP core floating point
华为交换机CE12808导入导出配置文件
Common server faults and their solutions
Merkletree builds QT implementation UI
Six common ways for hackers to attack servers
网站受DDoS攻击的表现以及查看方法
Verilog中for语句的使用
Solve the error that the simulation output is STX under the frequency division module Modelsim
Hongke will share the EtherCAT demo for you and teach you how to quickly transition from other protocols to EtherCAT industrial bus
8、 Network security
Floating point square root of vivado IP core floating point
IGMP protocol software development experiment
Huawei switch ce12808 import and export configuration file
centos 部署postgresql 13
Hongke shares | how to test and verify complex FPGA designs (1) -- entity or block oriented simulation
Those vulnerability attacks on app