我有PHP文件和指向这些文件的href链接,但没有文件扩展名。PhpStorm输出消息“无法解析目录。此检查检查未解析的文件引用”。例:
File path: /account.php
<a href="/account/">...</a>
Run Code Online (Sandbox Code Playgroud)
PhpStorm中是否有任何设置可以解决此问题?
PhpStorm的新版本可以映射“资源”目录(“资源”根目录)以及其他类型(“测试”,“源”,“排除”)。转到File > Settings > Directories(GNU / Linux,Windows)或PhpStorm > Preferences > Directories(Ctr+Alt+S),然后选择您的资源根目录。
请参阅https://www.jetbrains.com/help/phpstorm/2016.3/directories.html(因为2016.3是当时的当前版本)。