开启了statistics模块,也设置了,如图:
但是我在node.tpl.php中用下列代码输出:
<?php $statistics= statistics_get($node->nid); print $statistics['totalcount'];?>
什么都没有。
我启用了pathauto模块,url设置为x.com/1.html这种格式。
请先不要告诉我用views,views太强大,我目前不会。
开启了statistics模块,也设置了,如图:
但是我在node.tpl.php中用下列代码输出:
<?php $statistics= statistics_get($node->nid); print $statistics['totalcount'];?>
什么都没有。
我启用了pathauto模块,url设置为x.com/1.html这种格式。
请先不要告诉我用views,views太强大,我目前不会。