Revision #11 has been created by Narretz on Apr 4, 2012, 4:11:57 PM with the memo:
I added a reference to the CTimestampBehavior as a third possibility.
« previous (#10) next (#12) »
How to automate timestamps in ActiveRecord models
There are many ways to automate the setting of timestamps in yii ActiveRecord models. T
wo of them a
1. Via rules()
2. Via beforeSave()
To start off we need to create a database table.
[...]These are simple and elegant solutions to this issue.
- [Chinese version](http://www.itkuaixun.com/bbs/thread-197-1-1.html "Chinese version")