DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:action_router

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
devel:action_router [2018-04-25 16:27] andidevel:action_router [2021-01-23 17:57] – [Action Plugins] Klap-in
Line 32: Line 32:
 The [[devel:event:ACTION_ACT_PREPROCESS]] event basically wraps around all the steps under [[#Action Routing]]. Plugins that prevent the default action in this event's BEFORE phase will then later be handled in the new ''Plugin'' action which has a ''tplContent'' method that triggers [[devel:event:TPL_ACT_UNKNOWN]]. The [[devel:event:ACTION_ACT_PREPROCESS]] event basically wraps around all the steps under [[#Action Routing]]. Plugins that prevent the default action in this event's BEFORE phase will then later be handled in the new ''Plugin'' action which has a ''tplContent'' method that triggers [[devel:event:TPL_ACT_UNKNOWN]].
  
 +
 +==== Change action within a POST request ====
 +If you use the [[devel:event:ACTION_ACT_PREPROCESS]] event, and you have to redirect to the 'show' action, you have to use the 'redirect' action actually. This will reset the parameters as well.
devel/action_router.txt · Last modified: 2023-09-19 08:50 by andi

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki