初识magento

来源:互联网 发布:php 数组 分组 avg 编辑:程序博客网 时间:2024/05/22 11:36

初识magento


一、当一个router解析一个URL的时候,它是按照如下规则进行的: http://example.com/frontName/actionControllerName/actionMethod/ 


二、各模块的配置文件在design->frontend->m2cfront->feifei->catalog->catalog.xml和(或)design->frontend->base->default->layer->catalog.xml


三、块标签<block>中的type属性指的各模块下的Block文件夹中的对应php文件。如 <block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml"/>对应code->core->Mage->Catalog->Block->Product->View->Type->configurable.php.   同时在template(模板)文件configurable.phtml中的$this指向引用为configurable.php,$this调用的方法来自configurable.php.


四、模块的<frontend>和<router>标签一般在各模块下的config.xml文件中,如code->core->Mage->Catalog->etc->config.xml为Catalo模块的config.xml文件,该文件中的<frontend>下的<module>标签中的内容为 模块全名,如<module>Mage_Catalog<module>中的Mage_Catalog中Catalog为模块名,且同时指出其路径为Mage->Catalog.

原创粉丝点击