nvlad / yii2support

Yii2 Support for PhpStorm / IntelliJ IDEA
https://plugins.jetbrains.com/idea/plugin/9388-yii2-support
Other
294 stars 53 forks source link

Support aliases in path #186

Open yujin1st opened 6 years ago

yujin1st commented 6 years ago

Could you make support for aliases in path strings such as: @modules/data/views/backend/data/_values.php

2018-04-27 15 05 32

craiglondon commented 4 years ago

This would be a nice feature, it is annoying seeing the false positives for views that exist but the plugin doesn't parse the Yii:setAliases that are set in the bootstrap.php

Yii::setAlias('@common', dirname(DIR)); Yii::setAlias('@frontend', dirname(dirname(DIR)) . '/frontend'); Yii::setAlias('@backend', dirname(dirname(DIR)) . '/backend'); Yii::setAlias('@console', dirname(dirname(DIR)) . '/console');