*/ class Mage_Review_CustomerController extends Mage_Core_Controller_Front_Action { /** * Action predispatch * * Check customer authentication for some actions */ public function preDispatch() { parent::preDispatch(); if (!Mage::getSingleton('customer/session')->authenticate($this)) { $this->setFlag('', self::FLAG_NO_DISPATCH, true); } } public function indexAction() { $this->loadLayout(); $this->_initLayoutMessages('catalog/session'); if ($navigationBlock = $this->getLayout()->getBlock('customer_account_navigation')) { $navigationBlock->setActive('review/customer'); } if ($block = $this->getLayout()->getBlock('review_customer_list')) { $block->setRefererUrl($this->_getRefererUrl()); } $this->getLayout()->getBlock('head')->setTitle($this->__('My Product Reviews')); $this->renderLayout(); } public function viewAction() { $this->loadLayout(); if ($navigationBlock = $this->getLayout()->getBlock('customer_account_navigation')) { $navigationBlock->setActive('review/customer'); } $this->getLayout()->getBlock('head')->setTitle($this->__('Review Details')); $this->renderLayout(); } }