How to automate timestamps in ActiveRecord models

Comparing #12 with #13

Revision #13 was created by Yang He Yang He on Jun 29, 2012, 4:17:11 PM.

Removed broken link to Chinese translation

Content

[...]
These are simple and elegant solutions to this issue.

The third possibility is to use CTimestampBehavior in your models. You can read about this in the API documentation:
[http://www.yiiframework.com/doc/api/1.1/CTimestampBehavior](http://www.yiiframework.com/doc/api/1.1/CTimestampBehavior "Yii API: CTimestampBehavior")

 
Links
 
------------------
 
- [Chinese version](http://www.itkuaixun.com/bbs/thread-197-1-1.html "Chinese version")