getHelperImage()->flushImagesCache(); $this->getResponse()->setBody(Mage::helper('core')->jsonEncode(array("status" => "success"))); return $this; } /** * @return Orange35_ImageConstructor_Helper_Image */ protected function getHelperImage() { return Mage::helper('orange35_imageConstructor/image'); } protected function _isAllowed() { return Mage::getSingleton('admin/session')->isAllowed('admin/catalog/products'); } }