How do I set a project folder as the include path for my project?
I'm not talking about Resource Root — Resource Root is about the web root and it affects paths to things like images, css files, etc.
I'm talking about including php files, ex: <?php include "a.php"; ?>
PhpStorm thinks that the project root is the include path, but I'd like to set the `src/` folder in my project as the include path.
请先登录再写评论。
Hi,
It this case, you may want to try adding the `/src` directory to “PHP > Include Path”.
Also:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/13095706631058-Specifying-internal-include-paths-to-get-rid-of-the-Path-not-found-warnings-
https://youtrack.jetbrains.com/issue/WI-74287/Take-into-account-resource-roots-in-include-require-statements-path-resolution