ThinkPHP5 used getter

Acquirer role is performed after acquiring the field value of the data field of the automatic processing data table will be automatically converted to hump method, the status field value is generally a numerical type, we can define the acquirer, automatically converted to a string descriptor.
Trigger: acquirer automatically triggered only when the acquired when a data attribute
test data:
<ignore_js_op>  
Model Code:
<ignore_js_op>
controller code:

renderings:
<ignore_js_op> 



<ignore_js_op>

Controller code .png  (18.77 KB, downloads: 2)

 

Controller code .png
More technical information may concern: gzitcast

Guess you like

Origin www.cnblogs.com/heimaguangzhou/p/11446828.html