Posted By

pkarwatka on 04/15/11


Tagged


Versions (?)

If user logged in MAgento


 / Published in: PHP
 

  1. public function preDispatch()
  2. {
  3. parent::preDispatch();
  4.  
  5. if (!Mage::getSingleton('customer/session')->authenticate($this)) {
  6. $this->setFlag('', 'no-dispatch', true);
  7. if(!Mage::getSingleton('customer/session')->getBeforeUrl()) {
  8. Mage::getSingleton('customer/session')->setBeforeUrl($this->_getRefererUrl());
  9. }
  10. }
  11. }

Report this snippet  

You need to login to post a comment.