mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-19 07:07:58 +08:00
improved beforeAction docs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user