2
votes

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?

2
Nope, unless you disable such inspection. But next version (2016.2) will finally have some URL Rewriting support. - LazyOne

2 Answers

7
votes

New versions of PhpStorm can map Resources directories (Resource root) as well 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).

2
votes

Preferences > Editor > Inspections > HTML > inspections > File reference problems [disable]