Magento 事件(索引上调用哪个事件?)
正如问题中所述,当有人进入管理面板并选择目录搜索索引的重新索引数据时会触发哪个事件?
我尝试在命令 shell 上运行 grep ,但似乎无法使其正常工作(获取事件列表)。我尝试查看事件列表,但找不到正确的事件列表。
我倾向于认为事件 Catalogindex_plain_reindex_after 会被解雇,但我已经尝试过,但事实并非如此......
任何帮助将不胜感激!
As stated in the question, which event is fired when someone goes into the admin panel and selects reindex data for Catalog Search Index?
I tried running grep on my command shell and I cannot seem to get that to work (to get a list of events). I've tried looking at event lists and can't find the correct one.
I would tend to think that the event catalogindex_plain_reindex_after would be fired, but I have tried this and that is not the case...
Any help would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您找不到任何特定的事件调度,您始终可以在控制器上获取以下事件:
并且在观察者中您可以获取控制器参数:
其中“some_id_or_variable”是您想要从请求参数获取的值。
If you cannot find any particular event dispatch you can always get the following event on controller:
and in the observer you can get the controller params as:
where 'some_id_or_variable' is the value you want to get from request params.