352 \define('JPATH_COMPONENT_ADMINISTRATOR', JPATH_ADMINISTRATOR . '/components/' . $option);
353 }
354
355 // If component is disabled throw error
356 if (!static::isEnabled($option)) {
357 throw new MissingComponentException(Text::_('JLIB_APPLICATION_ERROR_COMPONENT_NOT_FOUND'), 404);
358 }
359
360 ob_start();
361 $app->bootComponent($option)->getDispatcher($app)->dispatch();
362 $contents = ob_get_clean();