×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: bejoy balan
Added: Apr 15, 2020 2:48 PM
Views: 4288
  1. Creating a Magento Module
  2. While this article is javascript heavy, we’ll want our example code to run on a page with Magento’s baseline HTML. This means adding a new module. We’ll do this the same as we did in the first article of this series, and use pestle to create a module with a URL endpoint
  3.  
  4. $ pestle.phar generate_module Pulsestorm KnockoutTutorial 0.0.1
  5.  
  6. $ pestle.phar generate_route Pulsestorm_KnockoutTutorial frontend pulsestorm_knockouttutorial
  7.  
  8. $ pestle.phar generate_view Pulsestorm_KnockoutTutorial frontend pulsestorm_knockouttutorial_index_index Main content.phtml 1column
  9.  
  10. $ php bin/magento module:enable Pulsestorm_KnockoutTutorial
  11.  
  12. $ php bin/magento setup:upgrade