Quick question:

Building a small mod,

running into this error:

undefined variable: thisstaff
fatal error: call to member function getName() on null

I'm guessing I need to make a require_ince or include call to the files that contain these variables & functions.

I am just trying to get the name of the agent thats logged in:

$user = thisstaff->getName();

Anyone know what files I need to include into my code? Thanks.

Hi,

You seem to be on the right track i think.

You can test the following:

require_once(STAFFINC_DIR.$inc);
require_once(INCLUDE_DIR.'class.json.php');

Write a Reply...