Hello everyone.
global $USER;
$a->hello= "Hello";
$a->user = $USER;
$mform->addElement('static', 'element1', '', get_string('hellomsg', 'enrol_test', $a));
--
$string['some_string'] = '{$a->hello} {$a->user->firstname}';
--
Output:
Hello {$a->user->firstname}
Why I can't get the firstname ?
Expected:
Hello firstNameHere
I try with var_dump and the $USER object is being passed correctly.
Thanks in advance!