fix post timestamp

parent 35de5907
...@@ -79,6 +79,9 @@ class Post extends \common\components\ActiveRecordModel ...@@ -79,6 +79,9 @@ class Post extends \common\components\ActiveRecordModel
'tags' => [ 'tags' => [
'class' => 'common\modules\blog\components\TagBehavior', 'class' => 'common\modules\blog\components\TagBehavior',
], ],
'Timestamp' => [
'class' => '\yii\behaviors\TimestampBehavior',
],
'file' => [ 'file' => [
'class' => 'common\components\activeRecordBehaviors\FileUploadBehavior', 'class' => 'common\components\activeRecordBehaviors\FileUploadBehavior',
'path' => '@frontend/web', 'path' => '@frontend/web',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment