├── .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 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/code/Pulsestorm/HelloWorldMVVM/etc/module.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/code/Pulsestorm/HelloWorldMVVM/registration.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /app/code/Pulsestorm/HelloWorldMVVM/view/frontend/templates/content.phtml: -------------------------------------------------------------------------------- 1 |

Hello World

-------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "pulsestorm/magento2-hello-world", 3 | "description": "A simple Hello World model for Magento 2 MVVM (or MVVM like) system.", 4 | "license": "MIT", 5 | "minimum-stability": "alpha", 6 | "require": {} 7 | } 8 | --------------------------------------------------------------------------------