I'm pretty new to PHPStorm, but I've ran into this problem where PHPStorm can't resolve the path which starts at the root of my project folder.
Like this:
PHPStorm can resolve the path when I put
dirname(__dir__)
in front of the name, but then I can't test my website using the run button.
When I use relative paths with ../.. PHPStorm recognizes the path as well, but again it doesn't work when testing the site, I also would rather not use relative paths.
PHPStorm is able to resolve the path from test.php which is in my root folder, but I'd like it to be able to resolve it from anywhere in my project.
Any help?