Return to Snippet

Revision: 44679
at April 15, 2011 19:41 by pkarwatka


Initial Code
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());
            }
        }
    }

Initial URL

                                

Initial Description

                                

Initial Title
If user logged in MAgento

Initial Tags

                                

Initial Language
PHP