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
When Magento 1 was initially released, "front end development" as it exists today was barely a thing. CSS was still largely written by hand, and jQuery vs. PrototypeJS was still a legitimate question for a new software project. Magento 2 enters a world where
astorm
Last time we discussed how Magento serves and generates front end (javascript, css) files to end users from its own modules. Like most of Magento's feature, if it's done in a core module, third party developers can do it in their own modules. This
astorm
We interrupt your regularly scheduled Magento tutorial for a quick announcement about a new (Magento related project) I've been working on.
astorm
As promised, today we're going to show you how to add javascript and CSS files to your Magento module without needing to worry about how their paths are rendered or how Magento serves them. While you may find this article useful on its own
astorm
Now that we've covered the basics of including javascript and CSS files in Magento 2, we're going to start exploring Magento's adoption of modern front end tools and libraries.
astorm
Last week we covered RequireJS, which is the foundational framework for Magento 2's modern approach to javascript. Today we're going to do the same for Magento 2's use of cascading style sheets.
astorm
Today we're going to cover creating Magento 2 CRUD models. CRUD stands for Create, Read, Update, and Delete, and commonly refers to framework features used to read and write information to/from the underlying database without directly writing any SQL statements.
astorm
Last time we explored database access in Magento via creating simple Magento 2 CRUD objects, and we explored the various source files involved. While some of the window dressing has changed, Magento 1 developers probably felt right at home. Conceptually, Magento 1's Model/ResourceModel/Collection ORM
astorm
The Magento backend application, (sometimes called "The Admin" or adminhtml area), is where a system owner manages their Magento store. This is where users interact with web forms to add new products, change configurations, etc. Magento is a multiuser application -- i.e. a
astorm
In the first article of this series, we described how to create a simple MVC/MVVM endpoint in Magento 2. Implicit, but unstated, was that we were setting up an endpoint for Magento's frontend cart application. While the backend admin application uses the same MVC/MVVM/View
astorm
Today we're going to cover a few of the advanced features of Magento's routing system, and discuss the history of some seemingly acute sharp edges. While all the techniques available in this article may not be the best way to achieve your goals, as
astorm
Now that we know how to create Access Control List Rules, and how to generate Admin Menu Items with Magento 2's CSFR protection, we're ready to create an MVC/MVVM URL endpoint (i.e. an HTML page) in Magento 2's admin.
astorm