:::: MENU ::::
Posts tagged with: magento

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 […]


Instalación de Magento vía FTP/SSH (II)

Sigo con la instalación paso a paso, esta vez desde el inicio de la instalación vía navegador Web, comentando punto por punto cada uno de los parámetros a configurar. Instalación de Magento Os dejo el vídeo, en el que se explica la instalación de Magento en 3 pasos: Localización de Magento (idiomas, zona horaria y […]


Instalación de Magento vía SSH, parte 1

Os dejo un mini vídeo instalando Magento si tenéis una conexión SSH con vuestro hosting. Es sin duda la forma más rápida de tener Magento en el servidor, ya que al copiar el archivo comprimido desde los servidores de Magento, nos evitamos la lenta subida por FTP. A los nuevos en el desarrollo quizá les […]


Configurar Table Rates en Magento

Lo se, hay miles de vídeos y tutoriales acerca del tema, pero creo que ninguno es tan completo como este ;) Os explico paso a paso como configurar el método de envío Table Rates, como crear el archivo CSV e importarlo y como probar que funciona correctamente. Entre otras cosas se tratan los siguientes puntos: […]


Inicialización de Magento: index.php y Mage.php

Cualquier petición a un sistema Magento, es derivada por medio del fichero .htaccess hacia el un punto de entrada común en el fichero index.php. Allí podemos ver como tras algunas comprobaciones iniciales (aplicación instalada, modo mantenimiento, etc.), enseguida es llamado el fichero Mage.php, encargado de la mayor parte de la inicialización del sistema: $mageFilename = […]


Páginas:1...56789