app\components\Helper::checkUserSetup PHP Method

checkUserSetup() private static method

private static checkUserSetup ( )
    private static function checkUserSetup()
    {
        if (UserModel::find()->where('id != 1')->count() == 0) {
            $link = Html::a('user module', ['/user/admin/create']);
            \Yii::$app->session->addFlash('warning', "There is no additional user registered, visit {$link} to create an editor.");
        }
    }