I tried to get a component form from my module. I got the model and then tried to get the form, but the result was empty. I tried to define 'JPATH_COMPONENT' and it was useless.
define('JPATH_COMPONENT', JPATH_SITE . '/components/com_business'); jimport('joomla.application.component.model'); JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_business/models'); $model = JModelLegacy::getInstance('Organization', 'BusinessModel'); //It is correct $form = $model ->get('Form'); //empty print_r($form);