首页 > Yii2自己写的组件为何phpstorm无法识别呢?

Yii2自己写的组件为何phpstorm无法识别呢?

这样配置的组件,phpstorm不能提示组件内的方法和属性。

'components'=>[
    'box'=>[
        'class'=>'frontend\components\Box'
    ]
]

/** @var \frontend\components\Box $test */
$test = Yii::$app->box;

参考资料
http://www.yiichina.com/tutorial/487

视频
http://pan.baidu.com/share/link?shareid=1801456562&uk=1191547431&fid=322257966212691
http://www.tudou.com/programs/view/UuM-7fbcLj4/

【热门文章】
【热门文章】