Beispiel #1
0
 public function edit()
 {
     $id = I('id', NULL);
     if (!empty($id)) {
         $model = new AdvModel();
         $data = $model->getById($id);
         $this->assign('udata', $data);
     }
     $this->display();
 }