Goodnight and Goodluck
If you follow Magento closely there have been hints, but it seems like the cat's out of the bag. Yoav Kutner, Magento's co-founder and CTO, is moving on.
astormIf you follow Magento closely there have been hints, but it seems like the cat's out of the bag. Yoav Kutner, Magento's co-founder and CTO, is moving on.
astormThere's two design patterns used in PHP systems that are often conflated. First, there's the event/observer pattern. This pattern allows a system-developer to issue global events which client-developers may then setup listener object/methods/functions for. These listeners observe the event, and then perform some action
astormWhen is Data set in an XML Update Available in a Block
astormUsing assign with Magento Blocks Apparently Magento blocks have an assign method, which produces behavior more like a “traditional” PHP MVC view layer. I was sort of aware of this, but it never really sunk in until @vinaikopp’s tweet. That is, if you use code like this #File: [...]
astormPassing Data between Controllers and Blocks Probably old hat for most of you, but repeating a lesson never hurts.
astormPeople often talk about Magento having a "SOAP" API. SOAP is a series of protocols that, from one point of view, is designed to allow programmers to call a function on one computer, and have it executed on another computer. XML-RPC is a simpler
astormMagento and max_input_vars The unstoppable @benmarks tweets a warning about Magento and max_input_vars. The further an abstraction removes itself from the underlying technology, the more bugs like this pop up. It’s a common anti-pattern I see in in web frameworks using Java-like OO patterns.
astormEvery model in Magento has an “array like” collection object. $collection = Mage::getModel('sales/order')->getCollection(); foreach($collection as $order) { echo $order->getIncrementId(); } Each collection also has a convenience method to grab the first or the last item from the collection $item = [...]
astormWhy Some Blocks Methods don’t Work in Some Templates
astormThis is a small PHP shell script that will extract the default connection information from local.xml and construct the correct command-line script to do a no-locking dump of the database. You’ll need to be in the root folder of a system for this to work. Useful if you spend a lot of time debugging different systems. #!/usr/bin/env [...]
astormTwo quick announcements this week. The first is the immediate availability of Commerce Bug 1.5, and the second is the new Pulse Storm blog. I'll still be posting Magento articles and tutorials here on alanstorm.com, but the Pulse Storm blog is what
astorm