255], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => 'Store ID', 'name' => '名称', 'type' => '类型', 'required' => '必填项', 'default' => '默认值', 'tip' => '提示语', 'sort' => '排序', 'is_delete' => 'Is Delete', 'addtime' => 'Addtime', ]; } public function beforeSave($insert) { $this->name = \yii\helpers\Html::encode($this->name); $this->tip = \yii\helpers\Html::encode($this->tip); $this->default = \yii\helpers\Html::encode($this->default); return parent::beforeSave($insert); } }