![]() Note that this was usually part of the Controller role of an MVC system. In Magento 2, this is handled by the module’s Block classes. The ViewModel interacts with the Model layer, exposing only the necessary information to the View layer.The layout files might also assign JavaScript files to be used in the final page. PHTML files are associated to each ViewModel in the Layout XML files, which would be referred to as binders in the MVVM dialect. ![]() This is achieved in the PHTML files distributed with modules.
0 Comments
Leave a Reply. |