magento
yhuan_
这个作者很懒,什么都没留下…
展开
-
探析magento的Layout xml Part 1
在Magento的MVC模式中的View层被分为2个部分:Layout 和Template。Template 是在layout中定义的在页面的具体什么位置显示的html。Magento 提供了十分简便,灵活的xml的配置。 1 Layout XML layout的xml能在系统的app/design/frontend/[package]/[theme]/layout中找到。每个Ma翻译 2012-11-09 15:35:11 · 1400 阅读 · 0 评论 -
探析magento的Layout xml Part 2
前言:首先,让我们先看下在这篇文章中用的比较多的方法。 MVC Action:没什么多说的,就是mvc的action。eg:当调用category页面时将调用Mage_Catalog_CategoryController::viewAction()。Layout Instance:用来呈现页面。在页面呈现前,Magento总是先实例化layout。Layout Update Instance翻译 2012-11-28 17:48:41 · 613 阅读 · 0 评论