This entry is part 4 of 4 in the series Modern Javascript for PHP Developers. Earlier posts include Modern Javascript for PHP Developers, Express and NPM for PHP Developers, and Client Side Javascript, Modules, and Webpack. This is the most recent post in the series. In our last article we covered the webpack project, and used it to [...]
astorm
Visit Linked Page
Reserved Words in Magento 2 URL Paths A StackExchange self answer where I use a plugin to work around the reserved-PHP-symbol-in-class-name problem that can plague Magento 2 URL routing. What’s extra baffling about this is Magento has a fix coded up, but only applies it to one URL segment. I suspect this is less baffling if you can gives up the idea that Magento 2 should retain its the rapid application prototyping roots of its ancestors.
astorm
Visit Linked Page
Magento 2 – Form Validation A StackExchange post that contains most (all?) of the CSS classes that can control Magento 2’s form validation. Magento seems to apply the validation rules on all form submits – although I haven’t dug too deeply into that one so caveat emptor etc. Also, a bonus for folks who read these Tumblr desciptions — here’s a quick bit of javascript that will take M1 style HTML and make all the fields required in an M2 context. require(['jquery'], function($){ $('.required-entry').each(function(key, element){ $(element).attr('required','required'); }); }); Useful if you have a complex form built with a combination of […]
astorm
This entry is part 3 of 4 in the series Modern Javascript for PHP Developers. Earlier posts include Modern Javascript for PHP Developers, and Express and NPM for PHP Developers. Later posts include Build Watchers, and NPM as a Build Tool. Earlier articles in this series included server side javascript that looked like this var http = [...]
astorm
Visit Linked Page
Magento custom Knockout.js bindings | Magento 2 Developer Documentation It might have taken 11 months, but it looks like Magento finally gave its dev docs team the resources they needed to document the UI Component Knockout JS custom bindings.
astorm
Visit Linked Page
JavaScript unit testing with Jasmine | Magento 2 Developer Documentation Jasmine’s a testing framework for javascript code – I didn’t know until today that Magento 2 had setup a framework for these tests. (Via the tremendous Vinai)
astorm
Visit Linked Page
Packagento – A curated list of open source Magento 2 modules A new Composer repository from Adam Johnson that’s curating open-source Magento 2 extensions.
astorm
This entry is part 2 of 4 in the series Modern Javascript for PHP Developers. Earlier posts include Modern Javascript for PHP Developers. Later posts include Client Side Javascript, Modules, and Webpack, and Build Watchers, and NPM as a Build Tool. Last time we investigated the basic execution flow of a server side NodeJS program. Our [...]
astorm
This entry is part 1 of 4 in the series Modern Javascript for PHP Developers. Later posts include Express and NPM for PHP Developers, Client Side Javascript, Modules, and Webpack, and Build Watchers, and NPM as a Build Tool. It’s getting harder and harder to ignore the modern javascript world. Even if you plan on staying safely [...]
astorm
(Putting this here in an external-memory/thinking-out-loud sort of way) Prior to Magento 2’s release, Magento executives circulated the idea that Magento 1 would reach its “end-of-life” three years after the release of Magento 2. Magento 2 was released November 17, 2015, which means Magento 1 reaches its end-of-life [...]
astorm
(With apologies to whomever originally posted this technique – I can’t seem to find your original article. If you’d like link/credit just let me know) As companies start to go ahead with Magento 2 builds and Magento 2 upgrades, more an more developers are wondering what to do about the missing code pools from Magento 1. [...]
astorm
Visit Linked Page
List of mod_security Rules for Magento 1 A list of instructions from the (semi?) independent Mage Security Council on installing their scanner. This sort of buries the lead – the end of the instructions point off to a list of malware fingerprint, which server administrators can use to block common attacks before they ever reach Magento.
astorm
Visit Linked Page
BFG Repo-Cleaner by rtyley Not quite Magento related, but we’ll let that slide. BFG is a command line program that lets you remove unwanted content from your a git repository’s history. Discovered it via a GitHub support issue on the same topic.
astorm
There’s a new point release of pestle available for immediate download — this one’s mostly a “bug fixes and improvements” sort of release, with the exception of the new mysql:key-check command, and some early alpha work on a Magento 2 webapi/service-contract generator. If “bug fixes and [...]
astorm
Visit Linked Page
The bin/magento setup:upgrade Command will Enable Non-Enabled modules · Issue #9516 · magento/magento2 Weird bit of behavior where the setup:upgrade command will automatically enable any module you’ve dropped into app/code. Small, but annoying bit of behavior if your run into it.
astorm
I’m writing this down so I can remember it later – if you’re not deep into Magento service contracts apologies for the word soup. When Magento’s parsing doc block’s for parameter types, it’s only looking at interfaces – or possibly its only looking at the type it knows about. i.e. if you have [...]
astorm
Visit Linked Page
Fooman’s Magento Imagine 2017 Wrap Up Another developer oriented Magento Imagine 2017 wrap up. Include the slides from Kristof’s talk on Magento and composer.
astorm
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
Visit Linked Page
Magento 2 Module for Custom Reporting Grids Haven’t tried it yet, but this looks like a Magento 2 module that will let you easily create new Reporting Grids with a simple SQL statement.
astorm
Visit Linked Page
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