18. Magento 细节
2015-09-06 16:34
344 查看
1. Magento 配置文件加载严格按字母顺序,除了模块依赖关系
2. global 节点
3. default 节点
4. frontend 节点
5. catalog 节点
6. how to access to cinfiguration value
2. global 节点
main database settings,such as host,database name ,user name,password and some system values. connections types(read/write) database adapter core module class names
3. default 节点
directory structure real folder names. system locale design and theme configuration system options
4. frontend 节点
routers translations files layout xml files observers declarations
5. catalog 节点
specific to a certain module.
6. how to access to cinfiguration value
1.to get part of config: $store->getConfig($path); 2.to get part of config: Mage::getStoreConfig($path[,$store]); 3.to check store flag: Mage::getStoreConfigFlag($path[,$store]); 4.to access by absolute path: Mage::getConfig()->getNode($path[,$scope]);
Mage::getModel(URI); // 按URI寻找配置标签,然后实例化
相关文章推荐
- Mybatis源码研究2:框架整体设计
- Mybatis源码研究3:包和类的概述
- Mybatis源码研究4:日志框架的实现
- iOS的过渡动画
- Fiddler修改请求的参数,重新执行请求
- iOS 8 Xcode6 设置Launch Image 启动图片<转>
- org.apache.commons.lang下的工具类
- 正则验证
- 可以接收链路层MAC帧的原始套接字
- !Important的使用及测试
- SDWebImage的使用
- 如何知道 java类 从 哪个jar 加载
- iOS学习之创建多个子工程
- ubuntu安装hadoop
- Windows下Administrator对文件权限修改的问题
- Linux定时备份数据库与脚本加密
- Mybatis源码研究5:数据源的实现
- Mybatis源码研究6:元数据(metadata)
- c++ 成员指针函数 实现委托----跨平台实现(复杂)
- HDOJ 5213