STEP-1 Creating Magento 2 Module
  1. 1.
    Let’s Create Empty Module Folder app/code/ScandiPWA/Version ScandiPWA is [VENDOR]
    1. 1.
      Let’s Create Empty Module Folder app/code/ScandiPWA/Version ScandiPWA is [VENDOR] module provider Version [MODULE]
    2. 2.
      In [MODULE] create file registration.php
app/code/ScandiPWA/Version/registration.php
1
<?php
2
\Magento\Framework\Component\ComponentRegistrar::register(
3
\Magento\Framework\Component\ComponentRegistrar::MODULE,
4
'ScandiPWA_Version',
5
__DIR__
6
);
Copied!
3. Create etc folder in [MODULE] and module.xml in it.
app/code/ScandiPWA/Version/etc/module.xml
1
<?xml version="1.0" ?>
2
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
4
<module name="ScandiPWA_Version" />
5
</config>
6
Copied!
4. Now we need to run setup:upgrade and find our module in output if you are running CMA setup open console in <PROJECT ROOT> run npm run cli and then m set:upyou should be able to find newly created module in output
Last modified 1mo ago
Copy link