Magento 2 Blank Layout PageHow can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlI created a custom module ,but getting error, not able to figure out what the error is about. How to get out of this error?main.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2 Add new field to Magento_User admin formMagento 2.2.5: Overriding Admin Controller sales/orderwant to add product tab in magento 2 admin panel product edit pageMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 Can't view module's front end page output?
Ragged justification of captions depending on odd/even page
Why doesn't Anakin's lightsaber explode when it's chopped in half on Geonosis?
Remove intersect line for one circle using venndiagram2sets
Is it rude to tell recruiters I would only change jobs for a better salary?
Meaning of slash chord without anything left of the slash
Will it hurt my career to work as a graphic designer in a startup for beauty and skin care?
Confused about 誘われて (Sasowarete)
Why are Japanese translated subtitles non-conversational?
How to draw a gif with expanding circles that reveal lines connecting a non-centered point to the expanding circle using Tikz
Are there any double stars that I can actually see orbit each other?
Align by center of symbol
Why is the collector feedback bias popular in electret-mic preamp circuits?
Why does Hellboy file down his horns?
Is this more than a packing puzzle?
Hot object in a vacuum
Why is "dark" an adverb in this sentence?
Are L-functions uniquely determined by their values at negative integers?
Are villager price increases due to killing them temporary?
What is the English equivalent of 干物女 (dried fish woman)?
Concatenation using + and += operator in Python
Why use null function instead of == []
Can a continent naturally split into two distant parts within a week?
Why do candidates not quit if they no longer have a realistic chance to win in the 2020 US presidents election
How to use "regular expression" to separate specific strings in Oracle
Magento 2 Blank Layout Page
How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlI created a custom module ,but getting error, not able to figure out what the error is about. How to get out of this error?main.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2 Add new field to Magento_User admin formMagento 2.2.5: Overriding Admin Controller sales/orderwant to add product tab in magento 2 admin panel product edit pageMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 Can't view module's front end page output?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I tried to create a new tab in customer edit backend.
First i create the
app/code/Namespace/Point/view/adminhtml/layout/customer_index_edit.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="customer_form">
<block class="NamespacePointBlockAdminhtmlEditTabCustomerPoint" name="customer_edit_tab_customerpoint" >
<action method="setTabLabel">
<argument name="label" xsi:type="string">Namespace Point</argument>
</action>
</block>
</referenceBlock>
</body>
</page>
then i create the block:
app/code/Namespace/Point/Block/Adminhtml/Edit/Tab/CustomerPoint.php
namespace NamespacePointBlockAdminhtmlEditTab;
use MagentoCustomerControllerRegistryConstants;
use MagentoUiComponentLayoutTabsTabInterface;
class CustomerPoint extends MagentoFrameworkViewElementTemplate implements TabInterface
protected $_coreRegistry;
public function __construct(
MagentoBackendBlockTemplateContext $context,
MagentoFrameworkRegistry $registry,
array $data = []
)
$this->_coreRegistry = $registry;
parent::__construct($context, $data);
public function getCustomerId()
return $this->_coreRegistry->registry(RegistryConstants::CURRENT_CUSTOMER_ID);
public function getTabLabel()
return __("Namespace Point");
public function getTabTitle()
return __('Namespace Point');
public function canShowTab()
if ($this->getCustomerId())
return true;
return false;
public function isHidden()
if ($this->getCustomerId())
return false;
return true;
public function getTabClass()
return '';
public function getTabUrl()
return $this->getUrl('namespace_point/customerpoint/tab', ['customer_id'=>$this->getCustomerId(),'_current' => true]);
public function isAjaxLoaded()
return true;
at this point the tab is showing in customer edit admin. Then i create the route app/code/Namespace/Point/etc/adminhtml/routes.xml
<?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="admin">
<route frontName="namespace_point" id="namespace_point">
<module before="Magento_Backend" name="Namespace_Point"/>
</route>
</router>
</config>
then the controller app/code/Namespace/Point/Controller/Adminhtml/Customerpoint/Tab.php
namespace NamespacePointControllerAdminhtmlCustomerPoint;
class Tab extends MagentoCustomerControllerAdminhtmlIndex
public function execute()
$this->initCurrentCustomer();
$resultLayout = $this->resultLayoutFactory->create();
return $resultLayout;
then i create layout for this controller layout
app/code/Namespace/Point/view/adminhtml/layout/namespace_point_customerpoint_tab.xml
<?xml version="1.0"?>
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<container name="root" label="Root">
<block class="NamespacePointBlockAdminhtmlEditTabCustomerPoint" name="point.edit.tab.customerpoint" template="Namespace_Point::customer_point_tab.phtml" cacheable="false"/>
</container>
</layout>
and finally the templates file app/code/Namespace/Point/view/adminhtml/templates/customer_point_tab.phtml
<h1> POINT </h1>
but when i click the new customer tab, it gives me blank page, when i use the tab url in my browser, it gives me blank page too, when i add die('test'); at the controller it prints test but when i add die('test'); in the block constructor it gives blank page, seems like the controller doesn't read the xml layout file to generate
magento2 layout xml page-layouts admin-controller
add a comment |
I tried to create a new tab in customer edit backend.
First i create the
app/code/Namespace/Point/view/adminhtml/layout/customer_index_edit.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="customer_form">
<block class="NamespacePointBlockAdminhtmlEditTabCustomerPoint" name="customer_edit_tab_customerpoint" >
<action method="setTabLabel">
<argument name="label" xsi:type="string">Namespace Point</argument>
</action>
</block>
</referenceBlock>
</body>
</page>
then i create the block:
app/code/Namespace/Point/Block/Adminhtml/Edit/Tab/CustomerPoint.php
namespace NamespacePointBlockAdminhtmlEditTab;
use MagentoCustomerControllerRegistryConstants;
use MagentoUiComponentLayoutTabsTabInterface;
class CustomerPoint extends MagentoFrameworkViewElementTemplate implements TabInterface
protected $_coreRegistry;
public function __construct(
MagentoBackendBlockTemplateContext $context,
MagentoFrameworkRegistry $registry,
array $data = []
)
$this->_coreRegistry = $registry;
parent::__construct($context, $data);
public function getCustomerId()
return $this->_coreRegistry->registry(RegistryConstants::CURRENT_CUSTOMER_ID);
public function getTabLabel()
return __("Namespace Point");
public function getTabTitle()
return __('Namespace Point');
public function canShowTab()
if ($this->getCustomerId())
return true;
return false;
public function isHidden()
if ($this->getCustomerId())
return false;
return true;
public function getTabClass()
return '';
public function getTabUrl()
return $this->getUrl('namespace_point/customerpoint/tab', ['customer_id'=>$this->getCustomerId(),'_current' => true]);
public function isAjaxLoaded()
return true;
at this point the tab is showing in customer edit admin. Then i create the route app/code/Namespace/Point/etc/adminhtml/routes.xml
<?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="admin">
<route frontName="namespace_point" id="namespace_point">
<module before="Magento_Backend" name="Namespace_Point"/>
</route>
</router>
</config>
then the controller app/code/Namespace/Point/Controller/Adminhtml/Customerpoint/Tab.php
namespace NamespacePointControllerAdminhtmlCustomerPoint;
class Tab extends MagentoCustomerControllerAdminhtmlIndex
public function execute()
$this->initCurrentCustomer();
$resultLayout = $this->resultLayoutFactory->create();
return $resultLayout;
then i create layout for this controller layout
app/code/Namespace/Point/view/adminhtml/layout/namespace_point_customerpoint_tab.xml
<?xml version="1.0"?>
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<container name="root" label="Root">
<block class="NamespacePointBlockAdminhtmlEditTabCustomerPoint" name="point.edit.tab.customerpoint" template="Namespace_Point::customer_point_tab.phtml" cacheable="false"/>
</container>
</layout>
and finally the templates file app/code/Namespace/Point/view/adminhtml/templates/customer_point_tab.phtml
<h1> POINT </h1>
but when i click the new customer tab, it gives me blank page, when i use the tab url in my browser, it gives me blank page too, when i add die('test'); at the controller it prints test but when i add die('test'); in the block constructor it gives blank page, seems like the controller doesn't read the xml layout file to generate
magento2 layout xml page-layouts admin-controller
please correct this : from =* @var MagentoFrameworkRegistry */ protected $_coreRegistry;To =/* @var MagentoFrameworkRegistry */ protected $_coreRegistry;
– kunj
Aug 31 '18 at 8:32
@kunj sorry its typo, but still not working
– mileven
Aug 31 '18 at 8:34
Try after cache flush and di compile, it is working for me but it will display only on customer edit not in customer create
– kunj
Aug 31 '18 at 8:42
I have updated answer
– kunj
Aug 31 '18 at 10:22
add a comment |
I tried to create a new tab in customer edit backend.
First i create the
app/code/Namespace/Point/view/adminhtml/layout/customer_index_edit.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="customer_form">
<block class="NamespacePointBlockAdminhtmlEditTabCustomerPoint" name="customer_edit_tab_customerpoint" >
<action method="setTabLabel">
<argument name="label" xsi:type="string">Namespace Point</argument>
</action>
</block>
</referenceBlock>
</body>
</page>
then i create the block:
app/code/Namespace/Point/Block/Adminhtml/Edit/Tab/CustomerPoint.php
namespace NamespacePointBlockAdminhtmlEditTab;
use MagentoCustomerControllerRegistryConstants;
use MagentoUiComponentLayoutTabsTabInterface;
class CustomerPoint extends MagentoFrameworkViewElementTemplate implements TabInterface
protected $_coreRegistry;
public function __construct(
MagentoBackendBlockTemplateContext $context,
MagentoFrameworkRegistry $registry,
array $data = []
)
$this->_coreRegistry = $registry;
parent::__construct($context, $data);
public function getCustomerId()
return $this->_coreRegistry->registry(RegistryConstants::CURRENT_CUSTOMER_ID);
public function getTabLabel()
return __("Namespace Point");
public function getTabTitle()
return __('Namespace Point');
public function canShowTab()
if ($this->getCustomerId())
return true;
return false;
public function isHidden()
if ($this->getCustomerId())
return false;
return true;
public function getTabClass()
return '';
public function getTabUrl()
return $this->getUrl('namespace_point/customerpoint/tab', ['customer_id'=>$this->getCustomerId(),'_current' => true]);
public function isAjaxLoaded()
return true;
at this point the tab is showing in customer edit admin. Then i create the route app/code/Namespace/Point/etc/adminhtml/routes.xml
<?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="admin">
<route frontName="namespace_point" id="namespace_point">
<module before="Magento_Backend" name="Namespace_Point"/>
</route>
</router>
</config>
then the controller app/code/Namespace/Point/Controller/Adminhtml/Customerpoint/Tab.php
namespace NamespacePointControllerAdminhtmlCustomerPoint;
class Tab extends MagentoCustomerControllerAdminhtmlIndex
public function execute()
$this->initCurrentCustomer();
$resultLayout = $this->resultLayoutFactory->create();
return $resultLayout;
then i create layout for this controller layout
app/code/Namespace/Point/view/adminhtml/layout/namespace_point_customerpoint_tab.xml
<?xml version="1.0"?>
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<container name="root" label="Root">
<block class="NamespacePointBlockAdminhtmlEditTabCustomerPoint" name="point.edit.tab.customerpoint" template="Namespace_Point::customer_point_tab.phtml" cacheable="false"/>
</container>
</layout>
and finally the templates file app/code/Namespace/Point/view/adminhtml/templates/customer_point_tab.phtml
<h1> POINT </h1>
but when i click the new customer tab, it gives me blank page, when i use the tab url in my browser, it gives me blank page too, when i add die('test'); at the controller it prints test but when i add die('test'); in the block constructor it gives blank page, seems like the controller doesn't read the xml layout file to generate
magento2 layout xml page-layouts admin-controller
I tried to create a new tab in customer edit backend.
First i create the
app/code/Namespace/Point/view/adminhtml/layout/customer_index_edit.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="customer_form">
<block class="NamespacePointBlockAdminhtmlEditTabCustomerPoint" name="customer_edit_tab_customerpoint" >
<action method="setTabLabel">
<argument name="label" xsi:type="string">Namespace Point</argument>
</action>
</block>
</referenceBlock>
</body>
</page>
then i create the block:
app/code/Namespace/Point/Block/Adminhtml/Edit/Tab/CustomerPoint.php
namespace NamespacePointBlockAdminhtmlEditTab;
use MagentoCustomerControllerRegistryConstants;
use MagentoUiComponentLayoutTabsTabInterface;
class CustomerPoint extends MagentoFrameworkViewElementTemplate implements TabInterface
protected $_coreRegistry;
public function __construct(
MagentoBackendBlockTemplateContext $context,
MagentoFrameworkRegistry $registry,
array $data = []
)
$this->_coreRegistry = $registry;
parent::__construct($context, $data);
public function getCustomerId()
return $this->_coreRegistry->registry(RegistryConstants::CURRENT_CUSTOMER_ID);
public function getTabLabel()
return __("Namespace Point");
public function getTabTitle()
return __('Namespace Point');
public function canShowTab()
if ($this->getCustomerId())
return true;
return false;
public function isHidden()
if ($this->getCustomerId())
return false;
return true;
public function getTabClass()
return '';
public function getTabUrl()
return $this->getUrl('namespace_point/customerpoint/tab', ['customer_id'=>$this->getCustomerId(),'_current' => true]);
public function isAjaxLoaded()
return true;
at this point the tab is showing in customer edit admin. Then i create the route app/code/Namespace/Point/etc/adminhtml/routes.xml
<?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="admin">
<route frontName="namespace_point" id="namespace_point">
<module before="Magento_Backend" name="Namespace_Point"/>
</route>
</router>
</config>
then the controller app/code/Namespace/Point/Controller/Adminhtml/Customerpoint/Tab.php
namespace NamespacePointControllerAdminhtmlCustomerPoint;
class Tab extends MagentoCustomerControllerAdminhtmlIndex
public function execute()
$this->initCurrentCustomer();
$resultLayout = $this->resultLayoutFactory->create();
return $resultLayout;
then i create layout for this controller layout
app/code/Namespace/Point/view/adminhtml/layout/namespace_point_customerpoint_tab.xml
<?xml version="1.0"?>
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<container name="root" label="Root">
<block class="NamespacePointBlockAdminhtmlEditTabCustomerPoint" name="point.edit.tab.customerpoint" template="Namespace_Point::customer_point_tab.phtml" cacheable="false"/>
</container>
</layout>
and finally the templates file app/code/Namespace/Point/view/adminhtml/templates/customer_point_tab.phtml
<h1> POINT </h1>
but when i click the new customer tab, it gives me blank page, when i use the tab url in my browser, it gives me blank page too, when i add die('test'); at the controller it prints test but when i add die('test'); in the block constructor it gives blank page, seems like the controller doesn't read the xml layout file to generate
magento2 layout xml page-layouts admin-controller
magento2 layout xml page-layouts admin-controller
edited Aug 31 '18 at 8:34
mileven
asked Aug 31 '18 at 8:16
milevenmileven
898 bronze badges
898 bronze badges
please correct this : from =* @var MagentoFrameworkRegistry */ protected $_coreRegistry;To =/* @var MagentoFrameworkRegistry */ protected $_coreRegistry;
– kunj
Aug 31 '18 at 8:32
@kunj sorry its typo, but still not working
– mileven
Aug 31 '18 at 8:34
Try after cache flush and di compile, it is working for me but it will display only on customer edit not in customer create
– kunj
Aug 31 '18 at 8:42
I have updated answer
– kunj
Aug 31 '18 at 10:22
add a comment |
please correct this : from =* @var MagentoFrameworkRegistry */ protected $_coreRegistry;To =/* @var MagentoFrameworkRegistry */ protected $_coreRegistry;
– kunj
Aug 31 '18 at 8:32
@kunj sorry its typo, but still not working
– mileven
Aug 31 '18 at 8:34
Try after cache flush and di compile, it is working for me but it will display only on customer edit not in customer create
– kunj
Aug 31 '18 at 8:42
I have updated answer
– kunj
Aug 31 '18 at 10:22
please correct this : from =
* @var MagentoFrameworkRegistry */ protected $_coreRegistry; To = /* @var MagentoFrameworkRegistry */ protected $_coreRegistry; – kunj
Aug 31 '18 at 8:32
please correct this : from =
* @var MagentoFrameworkRegistry */ protected $_coreRegistry; To = /* @var MagentoFrameworkRegistry */ protected $_coreRegistry; – kunj
Aug 31 '18 at 8:32
@kunj sorry its typo, but still not working
– mileven
Aug 31 '18 at 8:34
@kunj sorry its typo, but still not working
– mileven
Aug 31 '18 at 8:34
Try after cache flush and di compile, it is working for me but it will display only on customer edit not in customer create
– kunj
Aug 31 '18 at 8:42
Try after cache flush and di compile, it is working for me but it will display only on customer edit not in customer create
– kunj
Aug 31 '18 at 8:42
I have updated answer
– kunj
Aug 31 '18 at 10:22
I have updated answer
– kunj
Aug 31 '18 at 10:22
add a comment |
1 Answer
1
active
oldest
votes
please correct this:
your layout should be like this:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<container name="root" label="Root">
<block class="NamespacePointBlockAdminhtmlEditTabCustomerPoint" name="point.edit.tab.customerpoint" template="Namespace_Point::customer_point_tab.phtml" cacheable="false"/>
</container>
</body>
</page>
Try after cache flush and di compile, it is working for me but it will display only on customer edit not in customer create
– kunj
Aug 31 '18 at 8:42
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f240365%2fmagento-2-blank-layout-page%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
please correct this:
your layout should be like this:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<container name="root" label="Root">
<block class="NamespacePointBlockAdminhtmlEditTabCustomerPoint" name="point.edit.tab.customerpoint" template="Namespace_Point::customer_point_tab.phtml" cacheable="false"/>
</container>
</body>
</page>
Try after cache flush and di compile, it is working for me but it will display only on customer edit not in customer create
– kunj
Aug 31 '18 at 8:42
add a comment |
please correct this:
your layout should be like this:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<container name="root" label="Root">
<block class="NamespacePointBlockAdminhtmlEditTabCustomerPoint" name="point.edit.tab.customerpoint" template="Namespace_Point::customer_point_tab.phtml" cacheable="false"/>
</container>
</body>
</page>
Try after cache flush and di compile, it is working for me but it will display only on customer edit not in customer create
– kunj
Aug 31 '18 at 8:42
add a comment |
please correct this:
your layout should be like this:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<container name="root" label="Root">
<block class="NamespacePointBlockAdminhtmlEditTabCustomerPoint" name="point.edit.tab.customerpoint" template="Namespace_Point::customer_point_tab.phtml" cacheable="false"/>
</container>
</body>
</page>
please correct this:
your layout should be like this:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<container name="root" label="Root">
<block class="NamespacePointBlockAdminhtmlEditTabCustomerPoint" name="point.edit.tab.customerpoint" template="Namespace_Point::customer_point_tab.phtml" cacheable="false"/>
</container>
</body>
</page>
edited Aug 31 '18 at 10:21
answered Aug 31 '18 at 8:33
kunjkunj
2,6842 gold badges5 silver badges23 bronze badges
2,6842 gold badges5 silver badges23 bronze badges
Try after cache flush and di compile, it is working for me but it will display only on customer edit not in customer create
– kunj
Aug 31 '18 at 8:42
add a comment |
Try after cache flush and di compile, it is working for me but it will display only on customer edit not in customer create
– kunj
Aug 31 '18 at 8:42
Try after cache flush and di compile, it is working for me but it will display only on customer edit not in customer create
– kunj
Aug 31 '18 at 8:42
Try after cache flush and di compile, it is working for me but it will display only on customer edit not in customer create
– kunj
Aug 31 '18 at 8:42
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f240365%2fmagento-2-blank-layout-page%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
please correct this : from =
* @var MagentoFrameworkRegistry */ protected $_coreRegistry;To =/* @var MagentoFrameworkRegistry */ protected $_coreRegistry;– kunj
Aug 31 '18 at 8:32
@kunj sorry its typo, but still not working
– mileven
Aug 31 '18 at 8:34
Try after cache flush and di compile, it is working for me but it will display only on customer edit not in customer create
– kunj
Aug 31 '18 at 8:42
I have updated answer
– kunj
Aug 31 '18 at 10:22