title: Magento - overriding Adminhtml block
body: <p>I've spent hours trying to override the Magento block for the "Add store" and "Edit store" pages in an extension, to add another text box to it. After Going through books and Googling, I've found several solutions which people say are working, however not for me.</p>
  
  <p>One recommendation was <a href="http://www.magentocommerce.com/boards/viewthread/21978/" rel="nofollow noreferrer">this one</a>.</p>
  
  <p>I've copied the supposedly correct solution from Lee Saferite which works for the original poster but not for me. Of course, I changed the values to the class I'm overriding and the new modified class.</p>
  
  <p>My config.xml (the relevant part):</p>
  
  <pre><code>&lt;global&gt;
      &lt;blocks&gt;
        &lt;adminhtml&gt;
          &lt;rewrite&gt;
            &lt;system_store_sdit_form&gt;Nintera_General_Block_StoreEdit&lt;/system_store_sdit_form&gt;
          &lt;/rewrite&gt;
        &lt;/adminhtml&gt;
      &lt;/blocks&gt;
      &lt;resources&gt;&lt;/resources&gt;
      &lt;helpers&gt;
        &lt;Nintera_General&gt;
          &lt;class&gt;Nintera_General_Helper&lt;/class&gt;
        &lt;/Nintera_General&gt;
      &lt;/helpers&gt;
    &lt;/global&gt;
  </code></pre>
  
  <p>And the block class located at Nintera/General/Block/StoreEdit.php:</p>
  
  <pre><code>class Nintera_General_Block_StoreEdit extends Mage_Adminhtml_Block_System_Store_Edit_Form
  {
      /**
       * Prepare form data
       *
       * return Mage_Adminhtml_Block_Widget_Form
       */
      protected function _prepareForm()
      { ... }
  }
  </code></pre>
  
  <p>This class contains new input fields. The fields show up perfectly if I modify the original core file at:</p>
  
  <p>app/core/Mage/Adminhtml/Block/System/Store/Edit.php</p>
  
  <p>But I really want my extension to override it. If necessary I can post my entire config.xml but it's mostly creating a top level admin menu and specifies extension info, not much else. </p>
  
  <p>Any ideas on what goes wrong? A solution would be HIGHLY appreciated!</p>