I have a function inside a Widget that should return all the members of a given group. However, it seems to be impossible to loop through this function inside the widget. Once I put my function inside Page.php and loop through it in Page.ss I get the expected results. Putting it back in the Widget and nothing happens. How to get the widget to show the output aswell?
The code I am currently using (function getMembers):
I also tried $getMembers, but it was also useless. Any help is appreciated!