Magento - 资源和mysql4之间的区别
谁能告诉我创建模型扩展
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从 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