K
K
kolomat2020-05-20 18:50:18
Yii
kolomat, 2020-05-20 18:50:18

How to pass an array of links to batchSend() Yii2 httpClient?

Good afternoon, I'm trying to understand HttpClient and Yii2 in general. Tell me on this issue, there is a one-dimensional array with links of such a plan

Array(
[0] => site.loc/page1
[1] => site.loc/page2
)

I pass this array to the batchSend() function, as far as I understand, the function accepts an array and returns the result in the form of objects where the array keys correspond to the query keys, but the problem is that nothing happens, I just throw out an error.
Can anyone tell me what I'm doing wrong?
Thanks in advance for any answer

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