How to work with flash messages

Comparing #4 with #5

Revision #5 was created by Arsen Bespalov Arsen Bespalov on Jul 4, 2011, 6:20:39 AM.

Adding russian version, and change gehi type from php to javascript.

Content

[...]
?>
```

With these lines of code we register a piece of [jQuery](http://jquery.com/) (already included with YII) javascript code, using 'myHideEffect' as ID. It will be inserted in the jQuery's ready function (CClientScript::POS_READY). Due to the chainablity of jQuery the little script will run two effects on the .info DIV sequentially:

 
```php 
~~~
 
[javascript]
 
    
.animate({opacity: 1.0}, 3000) ```~~~ Normally this would animate the .info DIV to a full opacity within 3 seconds. But the DIV is already rendered with full opacity upon page load, so calling this effect will just cause a delay for 3 seconds.  
```php 
~~~
 
[javascript]
 
    
.fadeOut("slow") ```~~~

This is the fadeOut effect which will hide the .info DIV at slow speed.
[...]
### Links
[Russian Version](http://www.dbhelp.ru/yii-flash-msg/page/)
 
[Chinese version](http://projects.ourplanet.tk/node/82)