Find the below steps to Create custom module Magento2 Create Module Directory Structure app/code/VendorName/CustomModule Create the module.xml File app/code/etc/module.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Module/etc/module.xsd”> <module name=”VendorName_CustomModule” setup_version=”1.0.0″/> </config> Create Registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, ‘YourVendorName_CustomModule’, __DIR__ ); Create a Controller app/code/VendorName/CustomModule/Controller/Index/Index.php <?php namespace VendorName\CustomModule\Controller\Index; use Magento\Framework\App\Action\Action; use Magento\Framework\App\Action\Context; use Magento\Framework\View\Result\PageFactory; class Index extends Action […]
Read More