Want to create cache for magento 2.1 menu to don't send request.

Created cache folder and on menu.php on Block set directory but got below error:

Error filtering template: Notice: Undefined property: Ves\Megamenu\Block\Menu::$_objectManager in vendor/venustheme/module-megamenu/Block/Menu.php on line 75 and line 75 is: $this->_directory = $this->_objectManager->get('\Magento\Framework\Filesystem');

  • attach your code – Rk Rathod May 25 at 7:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.