Currently browsing

MVC Developers Part 6 – Entity Attribute Value

In our last article we told you there were two types of models in Magento. Regular, or “simple” models, and entity attribute value (or EAV) model. We also told you this was a bit of a fib. Here is where we come clean.

The following is part of a longer series on Magento aimed at developers familiar with PHP MVC development. Although each article can be read stand alone, each article is based on concepts and code covered in previous articles. If you are confused, especially to catch up on the earlier work first.

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) …

MVC Developers Part 9 – Varien Data Collections

Originally as a PHP programmer, if you wanted to gather together a group of related variables that you had a choice, the venerable Array. Although it shares a name with C's array of memory addresses, a PHP array is a general purpose dictionary like object with the behavior of a numerically indexed array variable.

In other languages, the choice is not so simple. You have several data structures to choose from, each with specific advantages in storage, speed and semantics. The PHP philosophy was to remove that choice from the client programmer and give them a useful data structure that was “good enough”. I have long held that PHP arrays are a major reason for the popularity of the platform.

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 …