I'm trying to get a small set of php functions working that i need available on the entire page. I'm including them in my index.php main template via require_once "my_functions.php"
.
They work in the index.php template; that's the good news.
We have a plugin that let's us write php in our content items with the following syntax:
{source}<?php echo "hello world!"; ?>{/source}
However, when trying to use the functions defined in my_funcitons.php, php thinks they're unavailable and generates a fatal error ... undefined method or function
.
Any ideas?