Class dektrium\user\filters\BackendFilter

Inheritancedektrium\user\filters\BackendFilter » yii\base\ActionFilter

BackendFilter is used to allow access only to admin and security controller in frontend when using Yii2-user with Yii2 advanced template.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$controllers array dektrium\user\filters\BackendFilter

Property Details

$controllers public property
public array $controllers = ['profile''recovery''registration''settings']

Method Details

beforeAction() public method

public bool beforeAction ( $action )
$action \yii\base\Action
throws \yii\web\NotFoundHttpException