“Cómo llamar a un archivo PhTML en otro archivo PhTML en Magento2” Código de respuesta

Cómo llamar a un archivo PhTML en otro archivo PhTML en Magento2

<?php echo $this->getLayout()->createBlock("Magento\Framework\View\Element\Template")->setTemplate("Magestore_Webpos::login.phtml")->toHtml() ?>
Combative Crocodile

Cómo llamar a un archivo PhTML en otro archivo PhTML en Magento2

<?php echo $this->getLayout()->createBlock("Magento\Framework\View\Element\Template")->setTemplate("Vendor_Module::custom.phtml")->toHtml();?>
Combative Crocodile

Respuestas similares a “Cómo llamar a un archivo PhTML en otro archivo PhTML en Magento2”

Preguntas similares a “Cómo llamar a un archivo PhTML en otro archivo PhTML en Magento2”

Más respuestas relacionadas con “Cómo llamar a un archivo PhTML en otro archivo PhTML en Magento2” en HTML

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código