getRequest()->getActionName(); $loginUrl = Mage::helper('customer')->getLoginUrl(); if (!Mage::getSingleton('customer/session')->authenticate($this, $loginUrl)) { $this->setFlag('', self::FLAG_NO_DISPATCH, true); } } public function indexAction() { $this->loadLayout(); $this->renderLayout(); } }