/**
  * 
  * 修改分类(名称)
  */
 public function modCate()
 {
     $PS = new PaperService();
     if (!empty(I('post.id')) && !empty(I('post.cname'))) {
         if (($res = $PS->doModCate(I('post.'))) && $res === true) {
             redirect(U('Cates/index'));
             exit;
         } else {
             $this->error($res, U('Cates/modCate', array('id' => I('post.id'))), 2);
             exit;
         }
     }
     $cate = $PS->getCates(I('get.id'));
     $this->assign('cate', $cate);
     $this->assign('mark', '修改分类');
     $this->display('addCate');
 }