public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], TimestampBehavior::className()];
 }
Example #2
0
 public function behaviors()
 {
     return [['class' => TimestampBehavior::className(), 'createdAtAttribute' => 'create_time', 'updatedAtAttribute' => 'update_time', 'value' => Yii::$app->formatter->asDate('now', 'php:Y-m-d H:i:s')]];
 }