Difference between #1 and #2 of
Extending common classes to allow better customization

Revision #2 has been created by Maurizio Domba Cerin on Jan 18, 2011, 8:45:23 PM with the memo:

changed setFlashFailure to setFlashError
« previous (#1) next (#3) »

Changes

Title unchanged

Extending common classes to allow better customization

Category unchanged

Tips

Yii version unchanged

Tags unchanged

Content changed

[...]
{
... 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:
[...]
36 0
19 followers
Viewed: 42 214 times
Version: 1.1
Category: Tips
Tags:
Written by: Steve Friedl
Last updated by: Steve Friedl
Created on: Dec 17, 2010
Last updated: 13 years ago
Update Article

Revisions

View all history