Public Member Functions | |
noRoute (Varien_Event_Observer $observer) | |
noCookies (Varien_Event_Observer $observer) |
Definition at line 35 of file Observer.php.
noCookies | ( | Varien_Event_Observer $ | observer | ) |
Modify no Cookies forward object
Varien_Event_Observer | $observer |
Definition at line 59 of file Observer.php.
00060 { 00061 $redirect = $observer->getEvent()->getRedirect(); 00062 00063 $pageId = Mage::getStoreConfig(Mage_Cms_Helper_Page::XML_PATH_NO_COOKIES_PAGE); 00064 $pageUrl = Mage::helper('cms/page')->getPageUrl($pageId); 00065 00066 if ($pageUrl) { 00067 $redirect->setRedirectUrl($pageUrl); 00068 } 00069 else { 00070 $redirect->setRedirect(true) 00071 ->setPath('cms/index/noCookies') 00072 ->setArguments(array()); 00073 } 00074 return $this; 00075 }
noRoute | ( | Varien_Event_Observer $ | observer | ) |
Modify No Route Forward object
Varien_Event_Observer | $observer |
Definition at line 43 of file Observer.php.
00044 { 00045 $observer->getEvent()->getStatus() 00046 ->setLoaded(true) 00047 ->setForwardModule('cms') 00048 ->setForwardController('index') 00049 ->setForwardAction('noRoute'); 00050 return $this; 00051 }