Skip to content

Instantly share code, notes, and snippets.

@Swader
Created December 7, 2012 10:10
Show Gist options
  • Save Swader/4232287 to your computer and use it in GitHub Desktop.
Save Swader/4232287 to your computer and use it in GitHub Desktop.
notices_article_02
// $oView = ... our view object
if (/* some expression that signifies an error */) {
$aMessages['error'] = 'Error no.2 occurred, contact developer!';
}
$aMessages['status'] = 'Finished operation';
$oView->aMessages = $aMessages;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment