Currently browsing

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.

MVC Developers Part 4 – models and Basics ORM

The implementation of a “Tier Models” is a large part of an MVC framework. It represents the details of your application, and most applications are useless without data. Magento Models play an even greater role, because they usually contain the “Business Logic” that often (good or bad) are relegated to the controller helper methods or other PHP MVC frameworks.

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 discussed in earlier articles. If you are confused, especially to catch up on the earlier work first.