/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public function preDispatch() { parent::preDispatch(); if (!Mage::getSingleton('customer/session')->authenticate($this)) { $this->setFlag('', 'no-dispatch', true); if(!Mage::getSingleton('customer/session')->getBeforeUrl()) { Mage::getSingleton('customer/session')->setBeforeUrl($this->_getRefererUrl()); } } }
Comments
