Categories


Recent Posts


Archives


Build Watchers, and NPM as a Build Tool

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

Reserved Words in Magento 2 URL  Paths

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

Magento 2 – Form Validation

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

Express and NPM for PHP Developers

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

Modern Javascript for PHP Developers

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
email hidden; JavaScript is required