Skip to content

Magento layout file not called?

This is my Controller Index.php

<?php

namespace HikmadhMenuControllerAdminhtmlProduct;

class Index extends MagentoFrameworkAppActionAction
{
/** @var MagentoFrameworkViewResultPageFactory  */
protected $resultPageFactory;
public function __construct(
     MagentoFrameworkAppActionContext $context,
     MagentoFrameworkViewResultPageFactory $resultPageFactory
) {
     $this->resultPageFactory = $resultPageFactory;
     parent::__construct($context);
}
/**
* Load the page defined in view/adminhtml/layout/samplenewpage_sampleform_index.xml
*
* @return MagentoFrameworkViewResultPage
*/
public function execute()
{
     $resultPage = $this->resultPageFactory->create();
     $resultPage->getConfig()->getTitle()->prepend(__('Add Products'));
     return $resultPage;
}
}

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 id="hello_menu" frontName="hello_menu">
            <module name="Hello_Menu"/>
        </route>
    </router>
</config>

hello_menu_product_index.xml

<?xml version="1.0"?>
<!--
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left"  xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd">
<head>
   
</head>
<body>
     <referenceContainer name="content">
         <uiComponent name="products"/>
     </referenceContainer>
</body>
</page>

My problem is there is no layout exist while call this action? If anyone know the answer please let me know?