nvlad / yii2support

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

Views can't be resolved in the project with custom structure #261

Closed clcagency closed 3 years ago

clcagency commented 3 years ago

What steps will reproduce the problem?

I have several fairly large projects with several subdomains. I use the Advanced app template with custom directories (not only frontend and backend as it is in the pure template). Each domain is placed in a separate folder (admin, site, mobile, api for example).

What is the expected result?

The view file name in the render function in Controller should be clickable, and the view file should be opened after the click. The suggestion for the view's name should work too.

What do you get instead?

image

Additional info

Q A
IDE Name PhpStorm
IDE Version 2020.3
Plugin version 0.10.57.33
Yii App Template advanced with custom folders
nvlad commented 3 years ago

yii root (vendor folder and yii.bat, init.bat files) located at "backend" folder?

clcagency commented 3 years ago

yii root (vendor folder and yii.bat, init.bat files) located at "backend" folder?

Yes.

nvlad commented 3 years ago

yii root (vendor folder and yii.bat, init.bat files) located at "backend" folder?

Yes.

You a configured yii root in settings?

See File -> Settings... Languages & Frameworks -> PHP -> Yii2 Support

clcagency commented 3 years ago

Oh, great, that helped. Thanks to you. You did a great job! And I'm sorry to bother you.