Function in PageController

Thank you JonoM
On the basis of the post: [Making a global function in PageController.php] (Making a global function in PageController.php)
I read your post forward and backward
Did I create a new SS installation without any additional controllers.
(If the page controller is expanded, this function works without problems - but I need the function in all page types)

Can it be another mistake with namespaces to use?