引用类型,构建路径中没有的内容

发布于 2024-12-20 21:18:28 字数 529 浏览 2 评论 0原文

经过大量的设置、测试、学习,我确实在 zend studio 8 中设置了一个新的 PHP 项目。

一切都很好,直到我导入了 phpmailer 和 mpdf5.1 库。 这些库给了我很多我不想要的警告。

因为这些是供应商,所以我只是将其设置为不包含在构建路径中。 警告消失了:太棒了!

但是,从这一点开始,当我尝试执行 new $mail = new PHPMailer(); 时zend studio 给我一个警告:

编辑开始(格式化信息)

Description: Class 'PHPMailer' not found
Resource: mails.class.php
Path: /Fmcss Core/classes
Location: line 633
Type: DLTK Problem

编辑结束

这是合乎逻辑的,因为它不在构建路径中。这是我网站的一部分,但我不希望它警告我。

那么有没有一种方法可以达到涅槃,我可以排除要验证的目录,但包含在我的构建路径中?

After a lot of setting, testing, learning, i did set up a new PHP Project in zend studio 8.

everything is fine, until i imported the phpmailer and mpdf5.1 libs.
These libs drop me a lot of warnigs what i do not want.

Becuase these are vendors, i just set it to not including in build path.
The warning are gone: Great!

But, from this point, when i try to do a new $mail = new PHPMailer(); zend studio drop me a warning:

EDIT START (formating info)

Description: Class 'PHPMailer' not found
Resource: mails.class.php
Path: /Fmcss Core/classes
Location: line 633
Type: DLTK Problem

EDIT END

It's logical, because it's not in build path. This is a part of my website, but i do not want it to warn me.

So is there a way to reach that nirvana, where i can exlude a directory to validate, but include in my build path?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

莳間冲淡了誓言ζ 2024-12-27 21:18:28

尝试将其添加为库而不是源文件夹。

Try adding it as a Library instead of a Source folder.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文