255], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => 'Store ID', 'article_cat_id' => '分类id:1=关于我们,2=服务中心', 'title' => '标题', 'content' => '内容', 'sort' => '排序:升序', 'addtime' => 'Addtime', 'is_delete' => 'Is Delete', ]; } public function afterSave($insert, $changedAttributes) { $data = $insert ? json_encode($this->attributes) : json_encode($changedAttributes); CommonActionLog::storeActionLog('', $insert, $this->is_delete, $data, $this->id); } }