[英]/app/code/core/Mage/Catalog/Model/Resource folders in Magento?
I'm trying to fix some problems with a Magento site, but I'm running into lots of problems . 我正在尝试修复Magento网站的一些问题,但是我遇到了很多问题。 .
。 .
。
I've located a folder in Magento with the path: 我在Magento中找到了以下路径的文件夹:
"/app/code/core/Mage/Catalog/Model/Resource" “ / app / code / core / Mage / Catalog / Model / Resource”
In the default install of Magento it has a file structure like so: 在Magento的默认安装中,它具有如下文件结构:
- category
- collection
- eav
- helper
- layer
- product
- more php files
However the dump of the current site I've received didn't have any of those folders or files except the "Eav" folder, the site was throwing errors so I added the other folders in (which seemed to fix it) unfortunately I think this may have caused other problems. 但是,我收到的当前站点的转储中除了“ Eav”文件夹外没有任何其他文件夹或文件,该站点抛出错误,因此很遗憾,我在其中添加了其他文件夹(似乎可以解决该问题)这可能引起了其他问题。
My question is, are all of those folders absolutely necessary for Magento to work? 我的问题是,所有这些文件夹对于Magento来说都是绝对必要的吗? Or are there situations in which you might remove all of those folder/files except the "Eav" folder?
或者在某些情况下,您可能会删除“ Eav”文件夹以外的所有这些文件夹/文件?
There was a general ORM rework which occurred in CE1.6. CE1.6中进行了一般的ORM返工。 Along with the introduction of DB-specific helpers and the completion of the Varien DDL components, the resource models were generally moved to a standard location for all modules.
随着特定于数据库的帮助器的引入以及Varien DDL组件的完成,通常将资源模型移至所有模块的标准位置。 In the case of Mage_Catalog the resource models were moved from Mage/Catalog/Resource/Eav/Mysql4/ to Mage/Catalog/Model/Resource/ and the resource model class group was changed from
catalog_resource_eav_mysql4
to catalog_resource
. 在Mage_Catalog的情况下,资源模型从Mage / Catalog / Resource / Eav / Mysql4 /移至Mage / Catalog / Model / Resource / ,资源模型类组从
catalog_resource_eav_mysql4
更改为catalog_resource
。
As noted in comments above, it is best to compare apples to apples, meaning to verify the version number in the Mage
class and comparing the core files to a known-good copy. 如上面的注释所述,最好将一个苹果与另一个苹果进行比较,这意味着要验证
Mage
类中的版本号,并将核心文件与一个已知良好的副本进行比较。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.