If you’ve spent anytime doing Magento 1 module development, you’re probably familiar with the _validateControllerClassName method. This method is where Magento 1 generates and validates paths to possible controller class matches during routing. This method is gone in Magento 2 – partially due to the PSR-0 autoloader [...]
astorm
In Magento 1, it was possible to register a global variable with the static registry method. Mage::register('some_var', 'some value'); var_dump(Mage::registry('some_var')); Many extensions, include core Magento extensions, ended up using this from controller action methods to pass variables into the views. While its future is uncertain [...]
astorm
Today we're going to run through a basic "Hello World" example in Magento 2. We'll setup a new URL, and show you how to create a phtml template for that URL. Along the way we're going to be talking about Design Patterns™, design patterns
astorm
The Magento 2 developer documentation is coming along at a good clip. Unlike round one, the company behind Magento has a dedicated team of profesional technology writeres who are cranking out documents based on interviews with the core team, and feedback from the merchant beta. I’ve seem some complaints that the developer [...]
astorm
Every so often in my small Magento 2 experiments, I’ll hit a point where an error like this starts popping up. Fatal error: Cannot redeclare class PulsetormHelloworldObserversBlock in /path/to/magento/app/code/Pulsestorm/Helloworld/Observers/Block.php on line 4 I’ll scratch my head for a while, wonder what’s going on, [...]
astorm
Today we're going to take a break from Magento 2 and talk about using Varnish as a tool for improving the performance and scalability of your Magento 1 system. While Magento 2 is on the mind of anyone connected to the Magento ecosystem, it's
astorm
We're finally here. After our long path through the object manager, automatic constructor dependency injection, class preferences, argument replacement, virtual types, proxy objects and code generation, we're finally familiar enough with the object system to discuss the true replacement for Magento 1's class rewrites
astorm