XF 2.2 Whose online text

Lee

Well-known member
This is probably simple, but I have created a new route and when it is visited it says “unknown page“ on the whose online list.

What is the correct way to show the correct information on this page? :)
 
Add a getActivityDetails method to the controller:

PHP:
/**
 * @param list<\XF\Entity\SessionActivity[]> $activities
 */
public static function getActivityDetails(array $activities): \XF\Phrase
{
    return \XF::phrase('addon_viewing_something');
}
 
Add a getActivityDetails method to the controller:

PHP:
/**
 * @param list<\XF\Entity\SessionActivity[]> $activities
 */
public static function getActivityDetails(array $activities): \XF\Phrase
{
    return \XF::phrase('addon_viewing_something');
}
So simple, thanks Jeremy.
 
Back
Top Bottom