Difference between #11 and #12 of
How to automate timestamps in ActiveRecord models

Revision #12 has been created by Narretz on May 2, 2012, 6:50:42 PM with the memo:

fixed the url for possibility 3
« previous (#11) next (#13) »


Title unchanged

How to automate timestamps in ActiveRecord models

Category unchanged


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](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")
25 0
Viewed: 154 608 times
Version: 1.1
Category: Tutorials
Written by: dalip
Last updated by: Yang He
Created on: Feb 14, 2009
Last updated: 5 years ago
Update Article


View all history