Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Overriding Controller - ProductController.php
 
fishme
Jr. Member
 
Total Posts:  8
Joined:  2008-10-27
Linz
 

Hello,

I have a big problem, if i try to override the class Mage_Adminhtml_Controller_Action - then I have follow effect (have a look to my attachment)

here my class code:

require_once "Mage/Adminhtml/controllers/Catalog/ProductController.php";
class 
RUP_MassVariants_Catalog_ProductController extends Mage_Adminhtml_Catalog_ProductController {
    
public function _construct(){
        parent
::_construct();
        
// Define module dependent translate
       // $this->setUsedModuleName('RUP_MassVariants');
    
}
    
public function editAction() {
        parent
::editAction();
        echo 
'XXX';
    
}
}

You can see, my output “XXX” is on the screen… but nohting else…

best greetings David

Image Attachments
overriding_product.png
 
Magento Community Magento Community
Magento Community
Magento Community
 
Charles
Member
 
Avatar
Total Posts:  73
Joined:  2008-03-27
Belgium
 

Has config.xml been adapted?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top