Exemplo n.º 1
0
 /**
  * 空间风格设置
  * Enter description here ...
  */
 public function doEditStyleAction()
 {
     $styleid = $this->getInput('id', 'post');
     $style = $this->_getStyleDs()->getStyle($styleid);
     if (!$style) {
         $this->showError('SPACE:fail');
     }
     Wind::import('SRV:space.dm.PwSpaceDm');
     $dm = new PwSpaceDm($this->loginUser->uid);
     $dm->setSpaceStyle($style['alias']);
     $resource = $this->_getSpaceDs()->updateInfo($dm);
     if ($resource instanceof PwError) {
         $this->showError($resource->getError());
     }
     $this->showMessage("MEDAL:success");
 }