Posted By

guimarca on 12/03/15


Tagged

php YII2


Versions (?)

Yii2 timestamp behavior


 / Published in: PHP
 

In the model

  1. use yii\behaviors\TimestampBehavior;
  2.  
  3. public function behaviors()
  4. {
  5. return [
  6. TimestampBehavior::className(),
  7. ];
  8. }

Report this snippet  

You need to login to post a comment.