Magento layout - content is not being rendered/displayed

前端 未结 4 832
独厮守ぢ
独厮守ぢ 2020-12-28 23:43

I have gone through various Magento tutorials as well as a Magento book on layout, but I\'m stuck with the following problem.

I have created a custom module, located

4条回答
  •  一向
    一向 (楼主)
    2020-12-29 00:06

    In magento 2.3.2, you have to enter this code for getting layout handle

    echo $this->getRequest()->getFullActionName();
    

    So the controller execute function like this

        public function execute()
        {
    
            echo $this->getRequest()->getFullActionName();exit;
        }
    

    And check the value printed on screen if it is same with layout handle name

提交回复
热议问题