[更新]基础控制器修正

This commit is contained in:
Anyon 2017-06-02 14:20:28 +08:00
parent 6845016d8e
commit 6cc0665237
2 changed files with 2 additions and 2 deletions

View File

@ -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);
} }
/** /**

View File

@ -1,4 +1,5 @@
<?php <?php
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Think.Admin // | Think.Admin
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------