I have component in Joomla 2.5. I am trying to make it to compatible with Joomla 3.x.
After few changes in the code, I get an error:
Cannot extend from interface JController
Then I change the code
From:
class drAffiliatesControllerDefault extends JController {
To:
class drAffiliatesControllerDefault extends JControllerAdmin {
After this, it's returning an error:
0 Cannot access protected property ApplicationAdministrator::$session
When I am adding the code
JControllerLegacy::display();
it's returning an error:
0 Using $this when not in object context
can anyone suggest me how can I upgrade my component to 3x