Currently browsing

How to override a Magento core block class

This tutorial will show you the proper method for overriding a Mage core class. This will work for Block and Model classes. Controllers are a slightly different story and for another tutorial. Some discussion on breadcrumbs: I will be overriding the Core file: app/code/core/Mage/Catalog/Block/Breadcrumbs.php (which I will call [Breadcrumbs-B]). This …

MVC Developers Part 2 – Magento Controller Shipping and Hello World

The Model-View-Controller (MVC) architecture traces its roots back to the programming language Smalltalk and Xerox Parc. Since then, many systems to describe their architecture and MVC. Each system is different, but they all have the goal of separating data access, business logic and user interface code from each other.

The architecture of PHP MVC frameworks, most will look something like this.

Magento Developer Certification Topics Index

1 – Basics This topic comprises approximately 5% of the exam. Questions are drawn randomly from the following objectives: Fundamentals ○ Describe and apply basic principles and processes of Object Oriented Programming (OOP) and Model-View-Controller (MVC) to build Magento websites ○ Identify and describe the principles of Event-Driven Architecture (EDA) …

Understanding about Magento Block in Magento MVC pattern

Many developers are familiar with the MVC (Model View Controller) design pattern that is seemingly ubiquitous throughout web frameworks. Looking through the code in Magento, however, we see many other components besides the M’s the V’s and the C’s. Each module (a “module” meaning the separate directories within the “app/code/core/Mage” …

magento – instantiation abstraction and Autoload

If you Aore at all familiar with object-oriented programming, the following line should you look for familiar. $customer_group = new Mage_Customer_Model_Group(); We, Aore instantiating an instance of the class Mage_Customer_Model_Group. However, if you were looking at the code base for Magento Mage_Customer_Model_Group you, AOD never a single expression that everything …

Bestseller module (with Toolbar!)

How many people were disappointed to install Magento’s test data and find out that the home page “Best sellers” was just pain HTML placed into the CMS home page? I certainly was one of those people. That’s why I decided to create a Bestseller Module that was dynamic and harnessed …