Jump to content

Call to undefined function in _func.php


didhavn
 Share

Recommended Posts

Hey all.

Does anyone of you know why I can not call functions that are defined in _func.php?

The file _func.php is included by the _init.php and if I just add an

echo 'TEST';

to the _func.php, it is working. But when I add e.g.

function print_test() {
  echo 'TEST';
}

I get a

Fatal error: Call to undefined function print_test() in ...

on the page of the template calling this function.

Does anyone of you have an idea what to change?

Best, Lukas

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...