public function unsubscribeAction() { $write = Mage::getSingleton('core/resource')->getConnection('core_write'); try { $delSql = 'Delete FROM `galleryday_comment_notification` where post_id="' . $this->getRequest()->getParam('postid') . '" and email_id="' . $this->getRequest()->getParam('email') . '" '; $write->query($delSql); $block = new MLogix_Gallery_Block_Day(); $postUrl = $block->getViewUrl($this->getRequest()->getParam('postid')); Mage::getSingleton('core/session')->addSuccess($this->__('Unsubscription successful.')); $this->_redirectSuccess($postUrl); return; } catch (Exception $e) { Mage::getSingleton('core/session')->addError("Unable to unsubscribe, please try later."); $this->_redirect('*/*/index'); } }
public function _construct() { parent::_construct(); return $this->setTemplate('gallery/archivebox.phtml'); }
public function _construct() { parent::_construct(); return $this->setTemplate('gallery/dayrightblock.phtml'); }