ThinkPHP控制器操作指南.pdfVIP

  • 0
  • 0
  • 约5.49千字
  • 约 4页
  • 2026-10-09 发布于北京
  • 举报

05.控制器操作|

end▁of▁sentence|

学习要点:|end▁of▁sentence|

1.前置操作2.跳转和重定向

3.空方法和空控制器|

end▁of▁sentence|

本节课我们来学习使用控制器的一些操作功能,比如前置、跳转重定向、空方法和空控制器

操作。|end▁of▁sentence|

一.前置操作|end▁of▁sentence|

1.

继承

Controller

类后可以设置一个$beforeActionList

属性来创建前置方法;

protected

$beforeActionList

=[first,

//one

方法执行不调用

second

前置

=

second

=[exceptone],//third

前置只能通过调用

one

和

two

方法触发

=

文档评论(0)

1亿VIP精品文档

相关文档