I am developing Joomla 3.4 application
where I have to call one component model into another component controller but not call from there.
Support, i have 2 component
>> comp1
model: m1
controller: c1
>> comp2
model: m2
controller: c2
I want to call comp1 model (m1) into comp2 controller (c2).
I tried using below code:
$model = $this->getModel('m1', '', array());
But in $model
get null value if above code use in comp1 controller (c1)
then run perfect.
What actually issue is not getting. Any one have a perfect idea.
Thanks