简体   繁体   English

Joomla事件覆盖

[英]Joomla Events Override

Is it possible for plugins to block System Events in Joomla? 插件是否有可能阻止Joomla中的系统事件? I'm currently using a url rewriting plugin and the onAfterRoute event does not seem to be called (which I need for another plugin) 我当前正在使用url重写插件,并且似乎未调用onAfterRoute事件(我需要另一个插件)

Thanks 谢谢

Plugins shouldn't be blocking the onAfterRoute event. 插件不应阻止onAfterRoute事件。 However, plugins responding to that event must be published after they are installed. 但是,响应该事件的插件必须在安装后发布。

Also, onAfterRoute is called after the URL is parsed and variables have been pushed into JRequest . 此外, onAfterRoute的URL解析和变量已经被推入之后被称为JRequest Is this this point where you're wanting the plugin to be called, or does it need to come before onAfterRoute ? 这是您要调用该插件的地方,还是需要在onAfterRoute之前onAfterRoute

Does the other plugin (the one that uses onAfterRoute ) work if you disable the URL rewriting plugin? 如果禁用URL重写插件,另一个插件(使用onAfterRoute插件)是否可以工作? If not, then that's not the problem. 如果没有,那不是问题。

If it does, then I suggest you look at the plugin and find the bit that targets onAfterRoute to see what it's doing. 如果是这样,那么我建议您查看该插件,并找到定位onAfterRoute的位以查看其作用。 (Maybe post it here if it's not too involved.) (如果不太参与,可以在此处发布。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM