I need to 'include' a PHP file into a content page. (The file is an LDAP search programme, but that's irrelevant for now).
I've added a new function to \mysite\code\Page.php:
and I've added a call to this function in \themes\blackcandy\templates\layout\Pass.ss
All good. The template gets 'included' and the functionality is fine.
Problem is, $Trombinoscope appears on the rendered page as the very first thing in the html flow, even before the <!DOCTYPE declaration.
Can anybody point me in the right direction?