ty0716 Posted July 7, 2015 Report Posted July 7, 2015 for example ,I add a new customfields :avatar. This use to save user's avatar url. But this value save where? and how to query this like User model. Quote
0 activa Posted July 7, 2015 Report Posted July 7, 2015 normally it should be saved in the "values" field . Quote
0 Tyson Posted July 7, 2015 Report Posted July 7, 2015 The screenshot you included shows the record of your defined custom fields, not the values that clients have set. Those are stored in the `client_values` table. However, you need not be concerned with the table structure if you're writing a plugin that uses the API. Simply call the Clients model, which provides several methods for managing custom fields, e.g. Clients::getCustomFields, Clients::getCustomFieldValues Quote
Question
ty0716
for example ,I add a new customfields :avatar. This use to save user's avatar url.
But this value save where? and how to query this like User model.
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.