Recent Posts


I Do Not Think that Word Means What you Think it Means


Frustrated by Magento? Then you’ll love Commerce Bug, the must have debugging extension for anyone using Magento. Whether you’re just starting out or you’re a seasoned pro, Commerce Bug will save you and your team hours everyday. Grab a copy and start working with Magento instead of against it.

Updated for Magento 2! No Frills Magento Layout is the only Magento front end book you'll ever need. Get your copy today!

One recent Magento 2 discovery that caught me off guard is, per the dev docs site, the <action/> method tag is depreciated

The <action> instruction is deprecated. If the method implementation allows, use the <argument> for <block> or <referenceBlock> to access block public API.

Given this, it sort of makes sense that the <container/> tags don’t allow you to call any action methods that, at first blush, you might expect them to (such as <action method="unsetChild"/>)

That said, for a depreciated tag, it’s weird to see it’s still used in 136 core layout files.

$ find vendor/magento/ -name '*.xml' | xargs ack -l '<action method' | wc -l

Copyright © Alan Storm 1975 – 2022 All Rights Reserved

Originally Posted: 20th February 2016