Answer the question
In order to leave comments, you need to log in
Where do objects (properties of the $app object) come from in the static property (Yii::$app), who put them there, how is this machine arranged, in Yii2?
How and where is the $app object formed in Yii2, thanks in advance
Answer the question
In order to leave comments, you need to log in
In the core and application config. For example, let's add our component:
'components' => [
'settings'=>[
'class' => 'backend\modules\main\components\Settings',
],
...
],
Yii::$app->settings
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question