My Customized controller seems not work. Added new method which suppose to update some values in table, here is my method:

    public function reorderAction()
    Mage::log('=> test',true,'bannerposition.log',null);
    $bannerId = $this->getRequest()->getPost("id");
    $bannerNewOrder = $this->getRequest()->getPost("order");
    try {
            $model = Mage::getModel('cms/block');
            //$bannerOldPosition = $model->getPosition();
            Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('cms')->__( $block.' Updated.'));
            return 'Updated';

        } catch (Exception $e) {
            return 'Update Failed';

    Mage::log('=> '.$result,true,'bannerposition.log',null);

    return $result;

in ajax url:


but I can't see anything, neither log created or change in database. What am I doing wrong ?

  • write more that you have tried. – Sohel Rana Feb 7 '19 at 2:53
  • What do you mean ? – Rob D. A. Feb 7 '19 at 7:15
  • add config xml where you register route. – Sohel Rana Feb 7 '19 at 8:41
  • I did not changed anything in config. Using core (local copy) BlockController.php where I added a new method. Should I register my new method to make it work ?? – Rob D. A. Feb 7 '19 at 9:53
  • This way not working. Create a new module, overwrite BlockController, then should work. If you need help let me know. – Sohel Rana Feb 7 '19 at 9:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.