Codeigniter 和 Doctrine 出现问题,从 Windows 迁移到 Linux 服务器

发布于 2024-09-26 21:23:40 字数 386 浏览 1 评论 0原文

我最近一直在学习如何使用 Doctrine 和 CI,并且一直在使用这两种工具彻底检修我的网站……一切都非常棒,直到出现以下问题:

从本质上讲,PHP、CI 或 Doctrine 都可以除非我明确要求/将它们包含在相应模型的类中,否则找不到我的基类?

EG:致命错误:找不到“BaseServiceCatagory”类

我的实时站点位于运行 PHP 5.2.6 的 Linux 机器上,而我的开发站点位于运行 PHP 5.2.9-1 的 Windows 上。它在 Windows 上运行得很好,但实时站点不断向我显示上面发布的错误。

我希望这里有人以前可能遇到过类似的问题,并且可能会就可能的原因提出一些建议。

提前致谢

I’ve recently been learning how to use both Doctrine and CI and have been overhauling my website using both tools… all has been absolutely awesome up until the following issue(s) occurred:

Essentially it would seem that either PHP, CI or Doctrine can’t find my Base classes unless I explicitly require/include them in the corresponding model’s class?

EG: Fatal error: Class ‘BaseServiceCatagory’ not found

My live site is sitting on a Linux box with PHP 5.2.6 and my dev site is on Windows with PHP 5.2.9-1. It works perfectly fine on Windows but the live site continually gives me the error posted above.

I’m hoping that someone here might have had similar problem before and might have some suggestions regarding what might be the cause.

Thanks in advance

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

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

发布评论

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

评论(3

我乃一代侩神 2024-10-03 21:23:40

根据命名约定,我假设这是一个 Doctrine 类。您的 Doctrine 设置/引导程序设置是什么样的?我的第一个猜测是,当您告诉 Doctrine 从哪里加载其模型时,您指向的是 Windows 样式文件路径。

Based on the naming convention I'm going to assume that's a Doctrine class. What does your Doctrine setup/bootstrap setup look? My first guess would be you're pointing to a Windows style file path when you tell Doctrine where to load its models from.

╰ゝ天使的微笑 2024-10-03 21:23:40

我遇到了同样的问题,这个问题的答案为我解决了这个问题:
PHP Doctrine 挫败感:加载模型不起作用..?

I was having the same problem and the answer to this question fixed it for me:
PHP Doctrine frustration: loading models doesn't work..?

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