diff --git a/application/system/controller/Category.php b/application/system/controller/Category.php
index 272ab01e..2cfb0445 100644
--- a/application/system/controller/Category.php
+++ b/application/system/controller/Category.php
@@ -124,13 +124,22 @@ class Category extends Base
// 编辑类别
public function edit($id)
{
- // 获取类别信息
- $list = CG::field('id,title,pid,paixu')
- ->get($id);
+ // 获取单位信息
+ $list['data'] = CG::field('id,title,pid,paixu')
+ ->find($id);
+ // 设置页面标题
+ $list['set'] = array(
+ 'webtitle'=>'编辑类别',
+ 'butname'=>'修改',
+ 'formpost'=>'PUT',
+ 'url'=>'/category/'.$id,
+ );
+
+ // 模板赋值
$this->assign('list',$list);
-
- return $this->fetch();
+ // 渲染
+ return $this->fetch('create');
}
// 更新类别信息
diff --git a/application/system/view/category/create.html b/application/system/view/category/create.html
index c035522e..e5e6714e 100644
--- a/application/system/view/category/create.html
+++ b/application/system/view/category/create.html
@@ -12,15 +12,15 @@
-
+
{php} $category = getCategory(0);{/php}
-