Over in my Patreon slack, a patron came to me with the following layout handle XML chunk. This block of XML would successfully remove the block named breadcrumbs, but it would not successfully remove the block named product_list_toolbar. This is one of those places where Magento’s lack of documentation and/or a cogent systems [...]astorm
Category: Programming Quickies
Back in they day, I ran a Tumblr blog named Magento Quickies where I’d post shorter, less in-depth posts about my travels through Magento’s source code. This Programming Quickies categories is the successor to that Tumblr blog. You’ll find all the old Magento Quickies content here, as well as new short posts about programming in general.
This section has its own RSS feed, the old Magento Quickies feed should should be redirecting, and we’re cross posting notifications for new posts over to magento-quickies.tumblr.com. In other words, you shouldn’t need to know any of this, but the duct tape that keeps the internet held together isn’t aging well, so your mileage may vary.
Below you'll find all the Programming Quickies articles on the site.
Imagine2017 Summary from Yiero Founder Jisse Reitsma A nice, succinct wrap up of Magento’s announcements at Imagine 2017. Lots of third party service acquisitions for EE users, not much public-news/investment on the open-source/CE/independent-developer side of things.astorm
Whether you’re using your IDE, a debugging extension, or calling get_class and new ReflectionClass yourself, PHP (or any language’s) ability to examine itself at runtime is a vital tool for debugging a program. Most bugs come down to “this variable does not have what I thought it had in it”, or “the thing in [...]astorm
We’ve just released pestle 1.3.1, the investable .0.1 release following 1.3.0. The release fixes a few bugs with the generated DDL code for text and decimal based columns. Full details available in the issue that reported the problem. If you’re at today’s Magento Imagine hackathon (or any day’s hackathon really), [...]astorm
I’m working on adding DDL (data definition language) code generation to pestle – i.e. the code that ultimately creates your database tables that lives in the InstallSchema or UpgradeSchema classes. I came across this bit of weirdness #File: vendor/magento/module-cms/Setup/InstallSchema.php )->addColumn( 'identifier', [...]astorm
Here’s a fun pestle command I forgot about. pestle.phar magento2:search:search_controllers This command accepts a file path as a single argument, searches through the specified folder for anything that looks like a Magento controller file, and then displays that controller file’s execute method along with its relative file [...]astorm
UI Component Item source Nodes are Redundant I finally got an answer out of Magento engineering on those <item name="source"/> nodes and their best guess is as good as ours. i.e., they’re redundant/not-used. There’s a few interesting points to make here for folks just learning to program, and just getting settled into [...]astorm