Im trying to follow this guide:
Custom FlowQuery Operations - Extending Neos with PHP & Flow - Manual - Neos CMS - Neos Docs
But i always get this error:
An exception was thrown while Neos tried to render your page Method “randomElement” is not callable in untrusted context
I set up my namespace correctly
File is in: DistributionPackages/Vendor.Site/Classes/FlowQuery/Operations/RandomElementOperation.php Namespace: namespace Vendor\Site\FlowQuery\Operations;
I also added the
What am i doing wrong?
it seems like the file is not recognized because the error message doesnt change, when i delete the php file.
i needed to add a helper:
Custom Eel Helpers - Extending Neos with PHP & Flow - Manual - Neos CMS - Neos Docs