Rails-like Console for PHP

If you’ve ever used Ruby on Rails, you know it has an amazing console that allows you to execute code within a fully bootstrapped application environment. With the rails console command, you can gain access to your database and models in a command-line interface read-eval-print loop (REPL) for your application. This is made possible by interactive Ruby, […]

Magento Under-the-Hood: Events and Observers

The Magento observer pattern is an ideal form of extending your store’s functionality. Since it is part of Magento’s architecture, you can inject your own routines into the e-commerce process.

Tags: ,

Magento Under-the-Hood: Advanced Layout Techniques

Magento’s XML layout engine is really unique because it allows you to override the presentation elements of an eCommerce site in a variety of ways. At the simplest level, an XML layout file determines which blocks are rendered on the page. A block is a PHP object that encapsulates a portion of the page’s HTML output. In this article, I am going to cover the use of <action /> tags in XML layout files.

Tags: ,

Problems with Magento Admin 404 Pages

Lately, I have been having a problem with Magento (version and how it is handling 404 errors in the admin. Basically, any time I go to a non-existent admin URL, I am getting redirected to the frontend 404 page. What should actually be happening is that I am redirected to an admin 404 page. As it […]


An Introduction to Magento E-Commerce

Since I have been working with the Magento E-Commerce software as of late, I will be publishing a series of blog posts to share what I have been learning with everyone.  For those of you who don’t know, Magento is a popular PHP/MySQL e-commerce platform that is super-powerful and infinitely customizable.


Magento Module-Manager Bash Completion

The following bash_completion script will enable your Linux shell to auto-complete Magento modman commands. Make sure you have modman in your $PATH, then simply copy the file to /etc/bash_completion.d/modman or append to ~/.bash_completion.