class Index extends Controller public function _initialize $webname=Dbnameweb-whereid1-find; $this-assign webname = $webnamename ; 改成从数据库获取表dd_user行数数量
class Index extends Controller { public function _initialize() { $userCount=Db::name('dd_user')->count(); $this->assign([ 'userCount' => $userCount, ]); } }
原文地址: https://www.cveoy.top/t/topic/hsR7 著作权归作者所有。请勿转载和采集!