Jump to content

Call to undefined function -- PHP variable functions


Recommended Posts

Posted
2 hours ago, Jim Bailie said:

namespacing?

Yes, it's because of the ProcessWire namespace. Add it when setting the function name to your variable:

$func = 'ProcessWire\foo';

 

  • Thanks 1
Posted

@da² It certainly is peculiar; disdainful even. But this is that one basis point case where it's simply a convenience to show/format a bunch of legacy content from an old database.

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
  • Recently Browsing   0 members

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