Can any one tell me how to call customer login page in magento2 Logo.phtml
1 Answer
Get login page in any phtml file:
<?php echo $this->getLayout()->createBlock("Magento\Customer\Block\Form\Login")->setTemplate("Magento_Customer::form/login.phtml")->toHtml();?>
Flush cache and try
-
-
@MonuKumar, The question is about how you call login page in logo.phtml. and this is the method to call login page in logo.phtml or any other phtml files. next you need to set design for it. Jul 24, 2017 at 9:21
-