├── .gitignore
├── README.md
├── app
└── code
│ └── Pulsestorm
│ └── HelloWorldMVVM
│ ├── Block
│ └── Main.php
│ ├── Controller
│ └── Hello
│ │ └── World.php
│ ├── etc
│ ├── frontend
│ │ └── routes.xml
│ └── module.xml
│ ├── registration.php
│ └── view
│ └── frontend
│ ├── layout
│ └── hello_mvvm_hello_world.xml
│ └── templates
│ └── content.phtml
└── composer.json
/.gitignore:
--------------------------------------------------------------------------------
1 | /vendor/
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # magento2-hello-world
2 | A simple Hello World model for Magento 2 MVVM (or MVVM like) system.
3 |
4 | http://alanstorm.com/magento_2_mvvm_mvc
5 |
--------------------------------------------------------------------------------
/app/code/Pulsestorm/HelloWorldMVVM/Block/Main.php:
--------------------------------------------------------------------------------
1 | pageFactory = $pageFactory;
12 | return parent::__construct($context);
13 | }
14 |
15 | public function execute()
16 | {
17 | var_dump(__METHOD__);
18 | $page_object = $this->pageFactory->create();;
19 | return $page_object;
20 | }
21 | }
--------------------------------------------------------------------------------
/app/code/Pulsestorm/HelloWorldMVVM/etc/frontend/routes.xml:
--------------------------------------------------------------------------------
1 |