Of tyrannies

Posted on Posted in Politics

“Of all tyrannies, a tyranny sincerely exercised for the good of its victims may be the most oppressive. It would be better to live under robber barons than under omnipotent moral busybodies. The robber baron’s cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own […]

Magento 1.x Events Reference

Posted on Posted in Magento

The following is a list of many Magento Community Edition events with module and parameters. Note that some events are dispatched with dynamically-calculated names, so this list is and always will be “incomplete”. At the bottom there is example of using an event. Magento Module Event Name Parameters Mage Admin admin_session_user_login_success array(’user’⇒$user) Mage Admin admin_session_user_login_failed […]

Magento 1.X getUrl() Function Parameters

Posted on Posted in Magento

In many, many places throughout Magento you will come across uses of getUrl() that generates a web address. It takes just two parameters but is immensely versatile. Parameter 1 – $routePath The route path follows the Zend behaviour of “module/controller/action”. The module part is self-explanatory. For example “cms” resolves to Mage_Cms. The controller is the class […]