00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 class Mage_Review_CustomerController extends Mage_Core_Controller_Front_Action
00036 {
00037 public function indexAction()
00038 {
00039 $this->loadLayout();
00040 $this->_initLayoutMessages('catalog/session');
00041
00042 if ($navigationBlock = $this->getLayout()->getBlock('customer_account_navigation')) {
00043 $navigationBlock->setActive('review/customer');
00044 }
00045 if ($block = $this->getLayout()->getBlock('review_customer_list')) {
00046 $block->setRefererUrl($this->_getRefererUrl());
00047 }
00048
00049 $this->getLayout()->getBlock('head')->setTitle($this->__('My Product Reviews'));
00050
00051 $this->renderLayout();
00052 }
00053
00054 public function viewAction()
00055 {
00056 $this->loadLayout();
00057 if ($navigationBlock = $this->getLayout()->getBlock('customer_account_navigation')) {
00058 $navigationBlock->setActive('review/customer');
00059 }
00060 $this->getLayout()->getBlock('head')->setTitle($this->__('Review Details'));
00061 $this->renderLayout();
00062 }
00063 }