Revision #2                                    has been created by  Maurizio Domba Cerin                                    on Jan 18, 2011, 8:45:23 PM with the memo:
 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->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:[...]