mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]基础控制器修正
This commit is contained in:
parent
6845016d8e
commit
6cc0665237
@ -78,7 +78,7 @@ class BasicAdmin extends Controller {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// GET请求, 获取并显示表单页面
|
// GET请求, 获取并显示表单页面
|
||||||
$vo = ($pkValue !== null) ? array_merge((array)$db->where($pk, $pkValue)->where($where)->find(), $data) : $data;
|
$vo = ($pkValue !== null) ? array_merge((array) $db->where($pk, $pkValue)->where($where)->find(), $data) : $data;
|
||||||
if (false === $this->_callback('_form_filter', $vo)) {
|
if (false === $this->_callback('_form_filter', $vo)) {
|
||||||
return $vo;
|
return $vo;
|
||||||
}
|
}
|
||||||
@ -127,7 +127,6 @@ class BasicAdmin extends Controller {
|
|||||||
}
|
}
|
||||||
!empty($this->title) && $this->assign('title', $this->title);
|
!empty($this->title) && $this->assign('title', $this->title);
|
||||||
return $this->fetch('', $result);
|
return $this->fetch('', $result);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | Think.Admin
|
// | Think.Admin
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user