Difference between #4 and #5 of
How to automate timestamps in ActiveRecord models

Revision #5 has been created by jonah on Feb 16, 2009, 6:49:16 AM with the memo:

we are XSS free
« previous (#4) next (#6) »


Title unchanged

Automate timestamps in ActiveRecord models

Category unchanged


Yii version unchanged

Tags unchanged

Content changed

<script type="text/javascript">
jQuery(document).ready(function() {
There are dozens of ways to automate the setting of timestamps in yii ActiveRecord models. Two ways you can do this are

1. Via rules()
2. Via beforeSave()

To start off we need a database table.
25 0
Viewed: 154 637 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