STEP-2 - Create Magento 2 Frontend Route and Basic Controller
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
<router id="standard">
<route id="scandipwa" frontName="scandipwa" >
<module name="ScandiPWA_Version"/>
</route>
</router>
</config><?php
namespace ScandiPWA\Version\Controller\Version;
use Magento\Framework\App\Action\Action;
class Index extends Action
{
/**
* @return void
*/
public function execute()
{
echo('Version 5.0.6');
}
}PreviousSTEP-1 Creating Magento 2 ModuleNextSTEP-3 Accessing Magento 2 Controller, Bypassing ScandiPWA frontend
Last updated