[RSS Feed/News] Is there a way to fetch details about who is viewing a page?

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
My addon has the following controller

PHP:

Code:
public function actionFoo()
{
    $viewParams = ['someVariableThatHoldsInformation' => <fetch the details here>];
   
    return $this->view('Asprin\CB:Foo', 'aspcb_my_template', $viewParams);
}

Aim is to have the following in the template
HTML:

Code:
<div>
    Users viewing this page: {$someVariableThatHoldsInformation}
</div>

If I had to show users who are currently on page aspcb_my_template, how do I get that info in my controller?
Read more about this Feed . . .
 
Status
Not open for further replies.
Back
Top Bottom