/**
  * 
  * 分类下文章列表
  */
 public function index()
 {
     $PS = new PaperService();
     is_numeric($cateId = I('get.cate', '', 'intval')) ? $cateId : '';
     //如果拿到了具体分类的信息,则显示该分类下的文章
     $posts = $PS->getPost(I('get.p'), 15, '', 0, $cateId);
     $post = $PS->packPostInfo($posts[0]);
     //如果传递了cateId,则把分类名称传递过去
     if (!empty($cateId)) {
         $this->assign('mark', $post[0]['cate']);
     }
     $this->assign('posts', $post);
     $this->assign('pager', $posts[1]);
     $this->display();
 }