• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Store Notification Messages

#1
Hi,

Not sure if this is the best place to post this, but here goes.

I'd like to keep all of my applications notification messages in one spot for easier maintenance. Right now I've created a library Messages and store all of the messages as constants, so then I can refer to them as Message::ERROR_WITH_SUBMISSION in the code, for example.Is this an accepted way?

Or should I be adding these types of messages be added to the constants.php file?

How would you go about this?

Thank you in advance,
Chris
Reply


Messages In This Thread
Store Notification Messages - by chrismartinez99 - 11-16-2017, 08:03 AM
RE: Store Notification Messages - by dave friend - 11-16-2017, 08:29 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.