AndyB
Well-known member
Hello,
In my add-on Forum Views:
https://xenforo.com/community/resources/forum-views.4089/
I'm counting how many times the forum_list is displayed. This currently works great as I'm extending the the actionIndex like this:
Now I would like to also count how many times the forum_view is displayed, so I'm extending the actionForum like this:
The problem I'm seeing is each time the forum_view is displayed, the actionForum appears to run twice. What am I missing?
Thank you.
In my add-on Forum Views:
https://xenforo.com/community/resources/forum-views.4089/
I'm counting how many times the forum_list is displayed. This currently works great as I'm extending the the actionIndex like this:
PHP:
<?php
class Andy_ForumViews_ControllerPublic_Forum extends XFCP_Andy_ForumViews_ControllerPublic_Forum
{
public function actionIndex()
{
// get parent
$parent = parent::actionIndex();
<code removed for brevity>
// return parent
return $parent;
}
Now I would like to also count how many times the forum_view is displayed, so I'm extending the actionForum like this:
PHP:
public function actionForum()
{
// get parent
$parent = parent::actionForum();
<code removed for brevity>
// return parent
return $parent;
}
The problem I'm seeing is each time the forum_view is displayed, the actionForum appears to run twice. What am I missing?
Thank you.