单条数据查询 Db::table()-where()->find()这样的返回值为空的话即为NULL; 我的做法是在控制器中直接assign后去模板里判断{if !is_null($data)}{/if} 省的总是给我报错