base\ActionFilter $only

$only public property

List of action IDs that this filter should apply to. If this property is not set, then the filter applies to all actions, unless they are listed in $except. If an action ID appears in both $only and $except, this filter will NOT apply to it.

Note that if the filter is attached to a module, the action IDs should also include child module IDs (if any) and controller IDs.

Since version 2.0.9 action IDs can be specified as wildcards, e.g. site/*.

See also $except.

public array $only = null
doc_Yii
2016-10-30 16:50:33
Comments
Leave a Comment

Please login to continue.