How to set messages?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
ethanlazarus
User
Posts: 71

How to set messages?

Post 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?


mobhar
User
Posts: 11905

Post by mobhar »

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


Post Reply