protected function findModel(string $id)
    {
        $item = Yii::$app->authManager->getRule($id);

        if (!empty($item)) {
            return new BizRuleModel($item);
        }

        throw new NotFoundHttpException(Yii::t('yii2mod.rbac', 'The requested page does not exist.'));
    }
protected function findModel(string $id)
    {
        $item = Yii::$app->authManager->getRule($id);

        if (!empty($item)) {
            return new BizRuleModel($item);
        }

        throw new NotFoundHttpException(Yii::t('yii2mod.rbac', 'The requested page does not exist.'));
    }
protected function findModel ( string $ id ) { $ item = Yii :: $ app -> authManager -> getRule ( $ id ) ; if ( ! empty ( $ item ) ) { return new BizRuleModel ( $ item ) ; } throw new NotFoundHttpException ( Yii :: t ( 'yii2mod.rbac' , 'The requested page does not exist.' ) ) ; }
Finds the BizRuleModel based on its primary key value.

If the model is not found, a 404 HTTP exception will be thrown.

@param string $id

@return BizRuleModel the loaded model

@throws \yii\web\NotFoundHttpException
Finds the BizRuleModel based on its primary key value .