How can check that Joomla component is active or not ?

In Joomla programming sometime you need to check that component is active or not. Because it is good practice to check first the component is active , instead of getting errors in module.¬†JComponentHelper class has a useful function to perform this task. Following example will shows how to check. if (!JComponentHelper::isEnabled(‘com_test’, true)) { return JError::raiseError(JText::_(‘Test … More How can check that Joomla component is active or not ?