TimestampBehavior::class, // 'attributes' => [ // ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'], // ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at' // ] // ] // ]; // } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => '商城id', 'polling_img' => '轮播图', 'explain' => '积分说明', 'created_at' => '创建时间', ]; } }