TP5.1 After setting a field in the model using a getter, how to obtain the original value of the field?
连界 现代 周伟
连界 现代 周伟 2019-05-25 21:56:06
0
0
1236

TP5.1 After setting a field in the model with a getter, how to obtain the original value of the field?

For example: status field

protected getStatusAttr($value)

{

return $value ? 'Normal' : 'Disabled';

}

Want to get the original value of status 1 or 0.

What methods can be used and how many implementation methods are there?

连界 现代 周伟
连界 现代 周伟

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template