php “use” not working in template [closed]
Quoting this answer, which came up when I searched for your error message: (emphasis mine) You cannot use “use” where you are using it. The “use” keyword is either in front of a class definition to import other classes/interfaces/traits into it’s own namespace, or it is inside the class (but not inside a method) to … Read more