I want to load 3rd party component's model to my custom created component. I tried following:
JLoader::import('joomla.application.component.model'); JLoader::import( 'manufacturer', JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'models' ); $model = JModel::getInstance( 'Manufacturer', 'VirtueMartModel' );
But it didn't work. Is there any way to get model? I am trying to load viretuemart manufacturer model to my component.
I am using Joomla 3.4.1 and viretuemart 126.96.36.199.
I would like to know how to achieve this from my developed component's controller, model and also from view.