致命错误:未捕获错误:类“Phalcon\Config”在 Phalcon Php 应用程序中找不到

发布于 2025-01-17 05:21:42 字数 370 浏览 2 评论 0原文

我在 Ubuntu 中安装了 Phalcon PHP 版本 5.0.0beta3,因为它与 PHP 8.0 兼容,但是当我运行我的应用程序时,找不到一些 Phalcon 类,我已经使用以下命令安装了 psr 模块:

sudo apt install php8.0-psr

并且我已经安装了 phalcon.so通过直接从 phalcon php github 版本下载,所以当我访问我的 phpinfo() 时,我可以在那里看到它:

安装 phalcon.so 的证据

知道发生了什么吗?

I installed Phalcon PHP version 5.0.0beta3 in my Ubuntu, because it's compatible with PHP 8.0, but when I run my application some Phalcon classes are not found, I already installed the psr module using the following command:

sudo apt install php8.0-psr

and I have installed phalcon.so by direct download from phalcon php github releases, so when I access my phpinfo() I can see it there:

evidence of phalcon.so instalation

any idea what's going on?

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

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

发布评论

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

评论(1

一百个冬季 2025-01-24 05:21:42

Phalcon 5 有许多向后不兼容的更改。最突出的是基本 Phalcon 命名空间中的所有类都被移动到更准确的位置。

  • Phalcon\配置 -> Phalcon\Config\Config
  • Phalcon\Di -> Phalcon\Di\Di

Etc

查看发行说明 https://github .com/phalcon/cphalcon/blob/master/CHANGELOG-5.0.md 了解具体更改。

Phalcon 5 has a number of backwards incompatible changes. Most prominent is all the classes in the base Phalcon namespace were moved to more accurate locations.

  • Phalcon\Config -> Phalcon\Config\Config
  • Phalcon\Di -> Phalcon\Di\Di

Etc

Check the release notes at https://github.com/phalcon/cphalcon/blob/master/CHANGELOG-5.0.md for specific changes.

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