asprin
Active member
My addon has the following controller
Aim is to have the following in the template
If I had to show users who are currently on page
PHP:
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:
<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?