/**
  * 文章详情
  */
 public function actionArticle($aid)
 {
     $aid = (int) $aid;
     $Articles = new Articles();
     $Category = new Category();
     $where = array('a.aid' => $aid);
     $this->data = $Articles->select('c.*,a.*')->from('articles a')->join('articles_content c', 'a.aid=c.aid')->where($where)->getOne();
     $this->data['content'] = stripslashes($this->data['content']);
     $this->title = $this->data['title'];
     $this->category = $Category->getOne('*', array('cid' => $this->data['cid']));
     $this->cid = $this->data['cid'];
 }
 /**
  * 添加、修改分类
  */
 public function actionModify($cid)
 {
     $cid = (int) $cid;
     $Category = new Category();
     $this->data = $Category->getOne('*', array('cid' => $cid));
 }