nvlad / yii2support

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

all views missing since last update #169

Closed cornernote closed 6 years ago

cornernote commented 6 years ago

What steps will reproduce the problem?

in controller:

return $this->render('index')

in view:

echo $this->render('test');

What is the expected result?

Finding a view template.

Additional info

Q A
IDE Name PhpStorm
IDE Version 2007.3.1
Plugin version 0.8.38.1
nvlad commented 6 years ago

Yii project root is PhpStorm project root?

cornernote commented 6 years ago

I don't think so, I always do File > Open Directory when I add a new project.

nvlad commented 6 years ago

how located yii root in phpstorm project?

yii root coincides phpstorm project root image

yii root locate in nested directory image

cornernote commented 6 years ago

Ahh, I see. Yes Yii is in the root, and the views are in /src/views/

image

nvlad commented 6 years ago

Released new plugin version with configurable Yii root folder.

cornernote commented 6 years ago

I upgraded the plugin... It's still not working. Do I have to do something else?

cornernote commented 6 years ago

Ahh, I see the setting now. I tried entering the following:

None worked.

Any suggestions?

cornernote commented 6 years ago

the error message is:

View file for "index" not found.

Would you be able to change it to:

View file for "index" not found in /the/place/we/looked.

That would help me to understand what to put in the setting field.

nvlad commented 6 years ago

Check the latest(0.8.42.3) plugin version.

Would you be able to change it to:

View file for "index" not found in /the/place/we/looked.

Thanx for idea. Added in release.

cornernote commented 6 years ago

The settings I put src:

image

But it still doesn't seem to find the views:

image

nvlad commented 6 years ago

Please test this build. (Plugin file in attached archive)

yii2support.zip

cornernote commented 6 years ago

sorry for the delay, yes this works!

andrew-svirin commented 6 years ago

This works for me too.