I have PHP files and a href links that lead to these files but without the file extension. PhpStorm outputs the messages "Can not resolve directory. This inspection checks unresolved file references". Example:
File path: /account.php
<a href="/account/">...</a>
Is in PhpStorm any setting to resolve this problem?
New versions of PhpStorm can map Resources directories (Resource root) as well as other types (Tests, Sources, Excluded). Go to File > Settings > Directories (GNU/Linux, Windows), or PhpStorm > Preferences > Directories (Ctr+Alt+S) and select your Resource root directory.
See https://www.jetbrains.com/help/phpstorm/2016.3/directories.html (as 2016.3 is the current version at time).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With