Magento 2のカスタムモジュールにアクセスしようとすると404ページが見つかりませんというエラー
ベンダーフォルダー内に2つのカスタムモジュールを作成しました。これは私のレイアウト構造です。 -app -code -Company -Blog -HelloWorld -Controller -Hello -World.php -registration.php -etc -module.xml -frontend -routes.xml どちらも有効です。 これはroutes.xmlHelloWorldモジュールの私のコードです。 <?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="helloworld" frontName="helloworld"> <module name="Company_HelloWorld"/> </route> </router> </config> これは私のコードですmodule.xml: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd"> <module name="Company_HelloWorld" setup_version="1.0.0"> </module> </config> これは私のregistration.phpファイルです: <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Company_HelloWorld', __DIR__ ); これは私のコントローラーコードです: …