Magento - 资源和mysql4之间的区别

发布于 2024-12-21 11:25:12 字数 293 浏览 2 评论 0原文

谁能告诉我创建模型扩展

Mage_Core_Model_Mysql4_Abstract

和扩展

Mage_Core_Model_Resource_Db_Abstract

之间的区别我注意到例如 Mage_Cms 使用资源而不是 Mysql4,并且在它的配置文件 myslq4 中被标记为已弃用,但我在官方 phpdocs 中找不到任何内容标记 mysql4 已弃用?
我正在使用 Magento EE 版本。 1.11.1.0

can anybody tell me the difference between creating a model extending

Mage_Core_Model_Mysql4_Abstract

and one extending

Mage_Core_Model_Resource_Db_Abstract

I noticed that for example Mage_Cms is using resource instead of Mysql4, and that in it's config file myslq4 is marked as deprecated but I can't find anything in the official phpdocs that mark mysql4 deprecated?
I'm using Magento EE ver. 1.11.1.0

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

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

发布评论

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

评论(1

情愿 2024-12-28 11:25:12

从 1.6 社区版(我不知道 EE)开始,Mysql4 已被弃用,取而代之的是资源

参见解释pdf

As of 1.6 Community Edition (I don't know about EE), Mysql4 was deprecated in favor of Resource

See explanation pdf

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