Explain Front slash before
\Yii::$app
.
How it works?
Why there is front slash before Yii::$app?
Explain Front slash before
\Yii::$app
.
How it works?
Why there is front slash before Yii::$app?
In PHP it means fully qualified class name (FQN). In this case it’s Yii class from the root namespace.