255], [['detail'], 'string', 'max' => 1000], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => 'Store ID', 'user_id' => 'User ID', 'name' => '姓名', 'mobile' => '手机号', 'province_id' => 'Province ID', 'province' => '省份名称', 'city_id' => 'City ID', 'city' => '城市名称', 'district_id' => 'District ID', 'district' => '县区名称', 'detail' => '详细地址', 'is_default' => '是否是默认地址:0=否,1=是', 'addtime' => 'Addtime', 'is_delete' => 'Is Delete', ]; } public function beforeSave($insert) { $this->name = Html::encode($this->name); $this->mobile = Html::encode($this->mobile); $this->detail = Html::encode($this->detail); return parent::beforeSave($insert); } }