Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm warning - Cannot resolve directory - a href without file extension

Tags:

php

phpstorm

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?

like image 278
D. Glow Avatar asked Sep 03 '26 11:09

D. Glow


1 Answers

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).

like image 85
Caco Avatar answered Sep 05 '26 02:09

Caco



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!