Esempio n. 1
0
 /**
  * 分类编辑页面
  */
 function edit()
 {
     //得到Get传来的Id
     $cate_id = $_GET['id'];
     $category = new CategoryModel();
     //where语句
     $where = array('id' => $cate_id);
     //获得分类表数据库数据
     $list = $category->where($where)->find();
     $this->assign('clist', $list);
     //获得单元表的所有单元
     $sec = new SectionModel();
     $list = $sec->select();
     $this->assign('slist', $list);
     $this->display();
 }