nialltiernan / Magento2-ViewModelExample

Small example of how to use ViewModel instead of overriding Template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Magento2-ViewModelExample

Small example of how to use ViewModel in for blocks. Done following this tutorial.

Install

Place this in app/code/Niall and run bin/magento setup:upgrade

How to use

Shows up on the default CMS homepage, but can be placed anywhere via the layouts.

About

Small example of how to use ViewModel instead of overriding Template


Languages

Language:PHP 83.8%Language:HTML 16.2%