Exemplo n.º 1
0
 /**
  * init
  *
  * @return void
  */
 public function init()
 {
     parent::init();
     if (\XLite\Controller\Customer\Profile::getInstance()->isRegisterMode()) {
         foreach ($this->tabs as $key => $tab) {
             if ('profile' != $key) {
                 unset($this->tabs[$key]);
             }
         }
     }
 }
Exemplo n.º 2
0
 /**
  * getTitle
  *
  * @return string
  */
 protected function getTitle()
 {
     return \XLite\Controller\Customer\Profile::getInstance()->isRegisterMode() ? 'New account' : 'My account';
 }