Jump to content

Add new Global variable in Context employee array


Recommended Posts

Hi,

 

I would like to add an external variable in employee context array, how to add additional variable in employee array?

 

Let's say I wanted to add something like this:

$context->employee['accessVerified'] = true;

so later I could access that variable somewhere in admin like:

if($context->employee->accessVerified)
 ...

Please help.

Thanks,

Edited by N@D33M (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
×
×
  • Create New...