Пример #1
0
 function index()
 {
     $aid = (int) $_GET['aid'];
     $result = Arti::body($aid);
     $typename = Alist::getTypeNameByAid($aid);
     $typename = $typename['name'];
     $this->assign('title', $result['title']);
     $this->assign('time', $result['time']);
     $this->assign('body', $result['body']);
     $this->assign('typename', $typename);
     $this->display();
 }
Пример #2
0
 public static function body($aid)
 {
     $a = new Arti();
     return $a->getBody($aid);
 }