<? php \ Magento \ Framework \ Component \ ComponentRegistrar :: register ( \ Magento \ Framework \ Component \ ComponentRegistrar :: MODULE , 'Some-name' , __DIR__ );
layout
<? xml version = "1.0" ?> < layout = "1columns" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: noNamespaceSchemaLocation = "urn: magento: framework: View / Layout / etc / page_configuration.xsd " > <body> <referenceContainer name = " content " > <block class = " Magento \ Framework \ View \ Element \ Template " template = " Some-name :: name.phtml " /> </ referenceContainer >
IFrame
<div data-mage-init = '{"hello": {"base_url": " <? php echo $ baseUrl ?> ", "store_Id": " <? php echo $ storeId ?> ", "product_Id": " <? php echo $ productId ?> "}} '>
<iframe src = " http: some url " width = " 100 " height = " 100 " > / iframe> </ div>