ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 24,583
- Points
- 823
Reputation:
My addon has the following controller
PHP:
Aim is to have the following in the template
HTML:
If I had to show users who are currently on page
Continue reading...
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?Continue reading...