private function test()
 {
     $article = new \Admin\Model\ArticleManageModel();
     $result = blogPage($article->getBlogCount(), 1, 3, 5);
     $result = $article->listBlog($result[1] - 1, 5);
     dump($result);
 }
 public function blogInfo()
 {
     $id = intval(I('get.id', 1));
     $categoryArray = C('BLOG_CATEGORY');
     $article = new \Admin\Model\ArticleManageModel();
     $bloginfo = $article->showArticle($id);
     //dump($bloginfo);
     $this->assign('blogId', $id);
     $this->assign('title', $bloginfo['title']);
     $this->assign('content', htmlspecialchars_decode($bloginfo['content']));
     $this->assign('time', date("Y-m-d H:i:s", $bloginfo['create_time']));
     $this->assign('category', $categoryArray[$bloginfo['category']]);
     $this->display();
 }