Lee Well-known member Jul 29, 2023 #1 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?
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?
Jeremy P XenForo developer Staff member Jul 29, 2023 #2 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'); }
Lee Well-known member Jul 30, 2023 #3 Jeremy P said: 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'); } Click to expand... So simple, thanks Jeremy.
Jeremy P said: 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'); } Click to expand... So simple, thanks Jeremy.