解决"未找到路径"项目源中include_path的错误

时间:2015-02-03 20:15:34

标签: php phpstorm

我正在将项目迁移到phpstorm,但我不确定如何正确设置这种情况并找不到清晰的文档。

我的项目结构是这样的:

\projectroot         <-- My phpstorm projects points at this directory
--\public_html       <-- The web server points here
----\.user.ini       <-- has include_path="C:\sites\projectroot\source"
----\index.php       <-- and a few other php files
--\source            <-- The folder containing real code
----\application.php <-- One example file
--\content

index.php包含使用require_once 'application.php'的文件,在源文件夹中,文件通常会执行require_once 'model/user.php'之类的操作,以在源文件夹中包含其他文件。我如何正确地让phpstorm解决这些仅包含此项目的内容。我看到设置&gt;下有一个包含部分PHP,但目前尚不清楚这是否是每个项目,并且看起来可能应该引用外部库。

0 个答案:

没有答案