magento在自己的模块 覆盖核心代码的block、helper、model
来源:互联网 发布:淘宝母婴直播 编辑:程序博客网 时间:2024/05/29 18:36
1 .config.xml
<models> <handheld_customer> <class>Handheld_Customer_Model</class> <resourceModel>customer_resource</resourceModel> </handheld_customer><customer_resource> <class>Mage_Customer_Model_Resource</class> <deprecatedNode>customer_mysql4</deprecatedNode> </customer_resource><customer> <rewrite> <customer>Handheld_Customer_Model_Rewrite_Customer</customer> </rewrite> </customer></models>
2 .新的customer.php的路径位置遵循xml里的rewrite路径
3.继承的类是原来的customer类,Mage_Customer_Model_Customer
4.其他覆盖blocks helper models都是一样的道理,注意:控制器的覆盖不遵循这个规则
参考链接:http://inchoo.net/ecommerce/magento/overriding-magento-blocks-models-helpers-and-controllers/
0 0
- magento在自己的模块 覆盖核心代码的block、helper、model
- magento在不同的模块分别覆盖原来的model、block或者helper
- 重写magento的model, block 和controller
- 重写magento的model, block 和controller
- Magento的helper重写规则
- magento - 自己开发的paypal支付模块
- magento 创建第一个自己的模块
- “约定优于配置”与Magento改造尝试四之block、helper和model加载
- 在模块中新建一个block作为自己的子block!!!!
- 创建一个新的模块在Magento
- magento -- 在Magento中使用自己写的SQL语句
- Magento的 奇怪Data Model
- magento中自己的模块使用 REST API (一)
- magento - 通过如何在magento的模板中获取到产品或产品分类的instance呢谈magento的helper类机制
- Magento中Block的应用
- Magento的block重写规则
- Magento Block的缓存机制
- Magento Block的缓存机制
- gitlab忘记管理员账户或密码解决记录
- 最基础的jdbc连接
- delphi 解析规律字符串方法
- sql where 1=1和 0=1 的作用
- 红黑树的插入操作--伪代码详细分析
- magento在自己的模块 覆盖核心代码的block、helper、model
- owb的组成部件以及运行架构模式
- 全排列剖析:求n个数第k个排序----康托展开
- QT窗口中一些小技术总结
- 安装rpm时报错:Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY error: Failed dependencies:
- 绝对路径和相对路径
- 好的博文1
- linux log 日志轮转 logrotate
- 题目1153:括号匹配问题