{
... do some action
if ( $success)
$this->setFlashSuccess('Action completed successfully!');
else
$this->setFlashFailureError('Could not complete the action');
...
}
```
Now, the success or failure of the action will be displayed in a small banner at the top of the next refresh, disappearing after that. Many find this version easier to read than: