/** 
  * 用户注册信息错误
  * 
  * @return void
  */
 public function regErrorAction()
 {
     if (in_array('register', Wekit::C('verify', 'showverify'))) {
         $this->setOutput('verify');
     }
     $config = Wekit::C('register');
     $this->setOutput($config, 'config');
     $this->setOutput(PwUserHelper::getRegFieldsMap(), 'needFields');
     $this->setOutput(array('location', 'hometown'), 'selectFields');
     $this->setOutput($this->error, 'message');
     $userForm = $this->getInput('pwUserRegisterForm');
     $this->setOutput($userForm->getData(), 'data');
     $this->setOutput($this->state, 'state');
     $this->setTemplatePath('TPL:u');
     $this->setTemplateExt('htm');
     $this->setTemplate('register');
 }
 /**
  * 初始化
  */
 private function init()
 {
     $registerService = new PwRegisterService();
     $result = $registerService->checkIp($this->getRequest()->getClientIp());
     if ($result instanceof PwError) {
         $this->showMessage($result->getError());
     }
     $resource = Wind::getComponent('i18n');
     list($_pwdMsg, $_pwdArgs) = PwUserValidator::buildPwdShowMsg();
     list($_nameMsg, $_nameArgs) = PwUserValidator::buildNameShowMsg();
     $this->setOutput($resource->getMessage($_pwdMsg, $_pwdArgs), 'pwdReg');
     $this->setOutput($resource->getMessage($_nameMsg, $_nameArgs), 'nameReg');
     $this->setOutput($this->_showVerify(), 'verify');
     $this->setOutput($this->_getRegistConfig(), 'config');
     $this->setOutput(PwUserHelper::getRegFieldsMap(), 'needFields');
     $this->setOutput(array('location', 'hometown'), 'areaFields');
 }