Hi,
I am using the following sub in a template global to pull a field from another table. How do I get it to determine the username of the person who is logged in?
Is there a set variable that can be used in the template global sub?
sub {
my ($field_name) = $DB->table('table_name')->select({'Username' => ??Logged in user?? }, ['field_name'])->fetchrow_array();
return $field_name;
}
Thank you.
Simon.