How to configure yii2 using phpstorm

I found several ways to configure Yii 1 with phpstorm. But I do not know how to deal with Yii 2.

There are some errors when using phpstorm. for example Yii::$app->db2, this method will call

"Access to the field through the magic method",

and some method bindValue,queryOnewill also cause some problems.

+4
source share
1 answer

At the moment there is no built-in function for Yii2as a frame (this is simple Yii1and Symfony, if I remember correctly).

: Yii2 DocBlock ( @var @property). , , . , .

+1

Source: https://habr.com/ru/post/1605682/


All Articles