Web Mentor
  • Home
  • Php
  • Laravel
  • Html
  • My SQL
  • Home
  • Php
  • Laravel
  • Html
  • My SQL

The Topic

  • Angular
  • html
  • javascript
  • laravel
  • magento
  • MAGENTO2
  • mysql
  • php
  • phpmyadmin
  • react
  • symfony
  • Wordpress

the recent query

  • React frontend with bootstrap and css
  • How to add custom css file in symfony
  • Symfony registration form Error
  • Install symfony in xampp
  • magento 2 how to check if module is enabled or disabled in phtml file
  • MAGENTO2

    magento 2 how to check if module is enabled or disabled in phtml file

    Webmentor / December 31, 2021 / 0 Comments

    $objectManager = \Magento\Framework\App\ObjectManager::getInstance();

    $moduleManager = $objectManager->get(‘\Magento\Framework\Module\Manager’);
    $xme = $moduleManager->isEnabled(‘Sparsh_AutoRelatedProducts’);
    if( $xme==1)

    {

    echo “module enable”;

    }

    read more
2020 webmentor.in
Ashe Theme by WP Royal.