This commit is contained in:
cxdbz committed 2019-04-15 06:44:05 +08:00
1 parent 687e086c31
commit 2b33e838bd
4 files changed
+22 -7

No files matched your search

+12 -4
View File
@@ -171,13 +171,21 @@ class Index extends Base
{
// 获取教师信息
$list = Teacher::field('id,xingming,sex,quanpin,shoupin,shengri,zhiwu,zhicheng,xueli,biye,worktime,zhuanye,danwei')
->get($id);
$list['data'] = Teacher::field('id,xingming,sex,quanpin,shoupin,shengri,zhiwu,zhicheng,xueli,biye,worktime,zhuanye,danwei')
->find($id);
// 设置页面标题
$list['set'] = array(
'webtitle'=>'编辑单位',
'butname'=>'修改',
'formpost'=>'PUT',
'url'=>'/teacher/'.$id,
);
// 模板赋值
$this->assign('list',$list);
return $this->fetch();
// 渲染
return $this->fetch('create');
}