Page 1 of 1

How to set messages?

Posted: Mon Nov 13, 2023 9:37 pm
by ethanlazarus

Another question re upgrading from 2018 to phpmaker 2024. In 2018, I could set success and failure messages - like this:

	$_SESSION[SESSION_MESSAGE] = "";
	$_SESSION[SESSION_FAILURE_MESSAGE] = "";
	$_SESSION[SESSION_SUCCESS_MESSAGE] = "";
	$_SESSION[SESSION_WARNING_MESSAGE] = "";

How does this work in 2024?


Re: SESSION_FAILURE_MESSAGE

Posted: Mon Nov 13, 2023 10:20 pm
by mobhar

It is still the same. You may see the code in the generated src/MessagesTrait.php file.