在Magento的前端控制器中触发的事件有哪些?
在Magento的前端控制器中触发的事件有哪些?这些事件的功能有哪些?共有4个:在Magento的前端控制器中触发的事件有哪些?,magento,Magento,在Magento的前端控制器中触发的事件有哪些?这些事件的功能有哪些?共有4个: controller\u front\u init\u before触发的第一个事件,可用于任何排序或重定向、日志记录或基准测试 controller\u front\u init\u路由器-这里可以添加自定义路由器 controller\u front\u send\u response\u before——设置cookie、修改输出或关闭基准的最后机会。注意:这就是为什么在action controller中
触发的第一个事件,可用于任何排序或重定向、日志记录或基准测试controller\u front\u init\u before
-这里可以添加自定义路由器controller\u front\u init\u路由器
——设置cookie、修改输出或关闭基准的最后机会。注意:这就是为什么在action controller中回显任何内容都不是一个好主意controller\u front\u send\u response\u before
-在这里,您可以清理或写入缓存,记录一些内容,用户无需等待任何其他清理或操作controller\u front\u send\u response\u after