Model:relation您所请求的方法不存在! thinkphp 最佳答案 推荐
一般是大小写引起的
错误
$operating = D('operating');
$count = $operating->where("Url='$url_act'")->count();
//总记录数
$operating->relation(true);
==============
正确
$operating = D('Operating');
$count = $operating->where("Url='$url_act'")->count();
//总记录数
$operating->relation(true);