Extending common classes to allow better customization

Comparing #1 with #2

Revision #2 was created by Maurizio Domba Cerin Maurizio Domba Cerin on Jan 18, 2011, 8:45:23 PM.

changed setFlashFailure to setFlashError

Content

[...]
{
... do some action
if ( $success)
$this->setFlashSuccess('Action completed successfully!');
else
$this->setFlash
FailureError('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:
[...]