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(); }
public static function body($aid) { $a = new Arti(); return $a->getBody($aid); }