Пример #1
0
 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');
     }
 }
Пример #2
0
 public function _construct()
 {
     parent::_construct();
     return $this->setTemplate('gallery/archivebox.phtml');
 }
Пример #3
0
 public function _construct()
 {
     parent::_construct();
     return $this->setTemplate('gallery/dayrightblock.phtml');
 }