Changes
Title
unchanged
How to automate timestamps in ActiveRecord models
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
Content
changed
[...]
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
Links
------------------
- [Chinese version](http://www.itkuaixun.com/bbs/thread-197-1-1.html "Chinese vers](http://www.yiiframework.com/doc/api/1.1/CTimestampBehavior "Yii API: CTimestampBehavio
nr")