1
votes

I am trying to do small change in community module MDN_Organizer in Magento 1.9 and it is turning out to be nightmare for me.

I need to change also one Grid so I created in code/local folders MDN / Organizer / Block / Task and new file Grip.php

For that, I have to rewrite one Action in controller TaskController which is in folder MDN / Organizer / Controllers / TaskController.php

Is it possible to rewrite that controller in local MDN / Organizer folder? Or Do I need to put controller to my own modules?

Can controller have the same name? How etc/config should looks?

Controller is for admin.

1
What have you done in research so far? All your questions can be answered by just reading a tutorial on how to build a magento controller or how to add a column to the admin grid... - RichardBernards
tutorials mainly show how to extends Core controllers. This question will help every new magento developer. - Rastislav
How you extend a 3rd party controller, happens in exactly the same way as extending a core controller... - RichardBernards
Is it possible to extends it in the same folders in local as it is in community or core? - Rastislav
I do not understand your last question... - RichardBernards

1 Answers

0
votes

You need to create new module you can keep in local or community it is not matter But add code in you file

app\etc\modules\Mycompany_Modulename.xml

<?xml version="1.0"?>
<config>
  <modules>
    <Mycompany_Modulename>
      <active>true</active>
      <codePool>local</codePool>
      <depends>
        <MDN_Organizer/>
      </depends>
    </Mycompany_Modulename>
  </modules>
</config>