R
R
romaaa322019-08-02 20:58:22
Yii
romaaa32, 2019-08-02 20:58:22

How is it implemented in Yii2 calling in this way: Yii::$app?

I mean exactly $app. Not appor app()as I know.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Bratenkov, 2019-08-03
@romaaa32

class Yii {
    public static $app;
}

K
Kirill Arutyunov, 2019-08-02
@arutyunov

Static variables. Get started with PHP basics .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question