示例#1
0
 public function edit()
 {
     $id = I('id', NULL);
     if (!empty($id)) {
         $article = new HelpModel();
         $articledata = $article->getById($id);
     } else {
         $this->message('请选择编辑对象', __URL__ . '/index');
     }
     $this->assign('articledata', $articledata);
     $this->display();
 }