迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
网站首页如何调用总的hits,就是每个内容页的阅读量总和
{php $ci->db->select_sum('hits');$row = $this->db->get('1_news')->row_array; echo $row['hits'];}
Type: Error
Message: Call to a member function get() on null
Filename: /www/wwwroot/cache/templates/templates.pc.default.home.right.html.cache.php
Line Number: 21
Backtrace:
File: /www/wwwroot/cache/templates/templates.pc.default.home.index.html.cache.phpLine: 45Function: include
File: /www/wwwroot/diy/dayrui/libraries/Template.phpLine: 234Function: include
File: /www/wwwroot/diy/branch/fqb/D_Common.phpLine: 3006Function: display
File: /www/wwwroot/diy/dayrui/controllers/Home.phpLine: 15Function: _indexc
File: /www/wwwroot/diy/Init.phpLine: 72Function: require
File: /www/wwwroot/index.phpLine: 49Function: require
{php $ci->db->select_sum('hits');$row = $ci->db->get('1_news')->row_array; echo $row['hits'];}
An uncaught Exception was encountered
Type: Error
Message: Call to a member function get() on null
Filename: /www/wwwroot/cache/templates/templates.pc.default.home.right.html.cache.php
Line Number: 21
Backtrace:
File: /www/wwwroot/cache/templates/templates.pc.default.home.index.html.cache.php
Line: 45
Function: include
File: /www/wwwroot/diy/dayrui/libraries/Template.php
Line: 234
Function: include
File: /www/wwwroot/diy/branch/fqb/D_Common.php
Line: 3006
Function: display
File: /www/wwwroot/diy/dayrui/controllers/Home.php
Line: 15
Function: _indexc
File: /www/wwwroot/diy/Init.php
Line: 72
Function: require
File: /www/wwwroot/index.php
Line: 49
Function: require