E
E
EvgMul2019-07-23 21:48:02
Yii
EvgMul, 2019-07-23 21:48:02

Does Yii2 send a query to the database when using such a string?

Hello. The following question arose. I can access the user model in the following way
Yii::$app->user->identity;
Question with the following. When executing this code, is the model already in this variable or is there a query to the database during execution?
Thanks in advance to all who respond.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2019-07-24
@EvgMul

Goes. Look in the debug panel

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question