insperedia / yiidea-support

Other
2 stars 0 forks source link

Rendering View File that is using Alias #10

Closed nhatzbulawan closed 8 months ago

nhatzbulawan commented 8 months ago

It seems like there is an issue when using the @app alias. It cannot find the file, even though it exists in the module directory.

image

insperedia commented 8 months ago

Thank you for the issue, aliases currently not supported directly because actual paths could be different during runtime. But this can be fixed in future versions. Could you please provide full path from the root of the project of the view file presented on screenshot.

nhatzbulawan commented 8 months ago

Hi @insperedia ,

The one shown is the full path from the root project, where the @app Alias is.

It is $rootProject/modules/user/views/default/user_menu.php

insperedia commented 8 months ago

I mean file which references user_menu.php. I guess it is in standard location like @app/views/layouts/main.php or something similar. Anyway, I checked your case, and see the problem. I will implement it in future versions.

nhatzbulawan commented 8 months ago

Hi @insperedia,

I'm sorry for the misunderstanding. It is located in @app/modules/admin/default/views/main.php.

insperedia commented 8 months ago

The bug was fixed in version 1.0.11 which will be available shortly after JetBrains Marketplace approval.