SOLVED: Call Bricks helper functions


I would like to use some Bricks PHP functions, so that I don’t have to reinvent the wheel, but I always have an error message because Helpers class is not found.

I don’t know much about Oriented Object PHP, so I might be missing something obvious to access this class…
Do I need some “include” directive or something like that?

Thanks in advance!

1 Like

Hello @yankiara

You are missing the namespace in the call to the Helpers class in order to get it working properly. So the calls outside the Bricks code should be done like this:


I hope this helps.

1 Like

Awesome, works like a charm, thanks a lot!