R
R
rasul2662022-01-19 00:34:21
Yii
rasul266, 2022-01-19 00:34:21

I can't figure out how to pass the get parameter to ExtraFields?

There is a playlist model and in it, in extrafields, a connection with the "video" table is indicated. The client will send a get with the 'language' parameter of the video, and how can I pass the 'language' parameter to video so that the selection of related data follows the condition of the 'language' parameter.

https://site.ru/restapi/playlist/?language=ru&expand=video

How to pass this parameter ?language=ru to expand=video so that the video outputs where the field language = ru

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question