开启了statistics模块,也设置了,如图:
但是我在node.tpl.php中用下列代码输出:
<?php $statistics= statistics_get($node->nid); print $statistics['totalcount'];?>
什么都没有。
我启用了pathauto模块,url设置为x.com/1.html这种格式。
请先不要告诉我用views,views太强大,我目前不会。
include('/opt/www/fdv2/drupal.stage/web/sites/default/settings.local.php') (Line: 4) require('/opt/www/fdv2/drupal.stage/web/sites/drupal001.net/settings.php') (Line: 145) Drupal\Core\Site\Settings::initialize('/opt/www/fdv2/drupal.stage/web', 'sites/drupal001.net', Object) (Line: 1099) Drupal\Core\DrupalKernel->initializeSettings(Object) (Line: 701) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
开启了statistics模块,也设置了,如图:
但是我在node.tpl.php中用下列代码输出:
<?php $statistics= statistics_get($node->nid); print $statistics['totalcount'];?>
什么都没有。
我启用了pathauto模块,url设置为x.com/1.html这种格式。
请先不要告诉我用views,views太强大,我目前不会。