:::: MENU ::::

Magento Certification: Rendering Blocks (part 7)

Explain different mechanisms for disabling block output In which ways can block output be disabled in Magento? There are some ways you can disable the block output in Magento. Remove a block from the layout in Magento In the layout files, you can set a remove node to disable the block. This will not only […]


Create custom variables in Magento

One of the less commented features in Magento are the Custom Variables. Much of the stores I see developed by others, don’t use this feature, but it’s the easiest way to store information from a custom extension or even custom data about our store. Let’s say for instance you need to put in the frontend […]


Magento Certification: Rendering Blocks (part 5)

Identify different types of blocks in Magento In this article we will check for the main characteristics of some of the pre-defined blocks in Magento. What is the purpose of each of the following block types Mage_Core_Block_Template Mage_Core_Block_Text_List Mage_Core_Block_Text Mage_Core_Block_Template It is for sure the most used block in Magento. The most important feature of […]


Magento Certification: Rendering Blocks (part 4)

Describe events fired in blocks How can block output be caught using an observer? During the render phase, Magento calls the method toHtml for each block that is needed in the page being generated. If you take a look at the Mage_Core_Block_Abstract::toHtml method, you’ll see that Magento fire a couple of events, one at the […]


Magento Certification: Rendering Blocks (part 6)

Describe block instantiation Block instantation in Magento takes place when the controller calls the method loadLayout. public function loadLayout($handles = null, $generateBlocks = true, $generateXml = true) { . . . // add default layout handles for this action $this->addActionLayoutHandles(); $this->loadLayoutUpdates(); if (!$generateXml) { return $this; } $this->generateLayoutXml(); if (!$generateBlocks) { return $this; } $this->generateLayoutBlocks(); […]


Magento Certification: Rendering Blocks (part 3)

Describe the stages in the lifecycle of a block Which class is responsible for creating an instance of the block? In Magento, the whole block hierarchy during a page generation is created by the class Mage_Core_Model_Layout. The method generateBlocks is responsible of that. Let’s take a look… public function generateBlocks($parent=null) { if (empty($parent)) { $parent […]


Magento Certification: Rendering Blocks (part 2)

Describe the relationship between templates and blocks Can any block in Magento use a template file? The template file usage in Magento is restricted to Mage_Core_Block_Template and blocks inheriting from it. Other blocks in Magento like Mage_Core_Block_Text does not inherit from it but from Mage_Core_Block_Abstract so it cannot use a template file for rendering. How […]


Magento Certification: Rendering Blocks (part 1)

Describe the programmatic structure of blocks in Magento What are blocks used for in Magento? Blocks are the main design element in Magento. A hierarchy of blocks is used to layout any page in a Magento store. Blocks in Magento divide into two big groups: Structural Blocks Content Blocks Programmatically there are no difference between […]


Magento Certification: Module initialization (I)

This post continues the series for Magento Certification, this time we’ll cover the Study Guide section «Module Initialization» and how the installed Modules are loaded by Magento during the initialization. Describe the steps needed to create and register a new module A Magento minimal extension needs only two files: First file must be located in […]



Optimización de Magento: Memoria Cache

Uno de los aspectos básicos para la correcta optimización de Magento es la configuración adecuada del sistema de memoria Cache. En este caso trataremos la configuración correcta de APC con un segundo nivel de cache en disco. Ya sabemos que Magento es un sistema con un gran consumo de recursos, así que en tiendas en […]


Magento Certification: Rendering, Themes in Magento

Define and describe the use of themes in Magento How can you use themes to customize core functionality Themes are not really intended to modify core functionality, so if you need to make some in depth modification, you better try to create some custom extension to do so. Throught themes you can anyway modify some […]


Páginas:1...8...18