/** * 单元 编辑页面 */ function edit() { //得到Id $sec_id = $_GET['id']; $section = new SectionModel(); //动态获取数据 $list = $section->getById($sec_id); $this->assign('slist', $list); //显示页面 $this->display(); }