M
M
MyQuestion2022-03-09 14:13:48
Yii
MyQuestion, 2022-03-09 14:13:48

Yii2: where are objects of type "$var::object" registered?

Good afternoon!
I'm not familiar with yii2, I came to the site for edits.

I often see constructions in the code of the form $model::Petli, for example, in this form, this line will give me the ID of the "loop" section. Pretty convenient, actually. But I don't understand where it is registered and how can I see the whole list of available names.

Perhaps I am mistaken in terminology, but I hope I was able to convey the general meaning.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IvanMogilev, 2022-03-09
@MyQuestion

Here
Defined accordingly in the model
And what is already returned there depends on the logic of static properties / methods in the model

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question