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.
One of the most powerful elements of the Magento e-commerce system is the System Admin Config section. As a developer, will it allow you to quickly and easily set, elements that allow your end-users to their system and your Magento custom modules to configure.
Like a lot of things in Magento can be intimidating the first time you try to install a new configuration section from scratch, but once you done it once the power of (almost) code will form a less addictive. Let us begin.
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) …
Last time we talked about Magento's System Configuration System. If you missed it, you want to go back and catch up. So, we glossed over a lot of tags you can use within a separate field.
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.