improved beforeAction docs

This commit is contained in:
Carsten Brandt
2015-03-21 12:13:03 +01:00
parent 70fa53a20f
commit 2f5345b63c
2 changed files with 6 additions and 0 deletions

View File

@@ -579,6 +579,9 @@ class Module extends ServiceLocator
* The method will trigger the [[EVENT_BEFORE_ACTION]] event. The return value of the method
* will determine whether the action should continue to run.
*
* In case the action should not run, the request should be handled inside of the `beforeAction` code
* by either providing the necessary output or redirecting the request. Otherwise the response will be empty.
*
* If you override this method, your code should look like the following:
*
* ```php