A
A
Artem2015-05-13 20:36:53
Yii
Artem, 2015-05-13 20:36:53

How to pass parameters by post in yii2 from controller?

The question is:
Do I need to do it to a certain url and at the same time pass some parameters as a post?

Yii::$app->response->redirect(Url::to(['https://toster.ru', $params]));

$params is an array of data that you need to pass posts to the url https://toster.ru and at the same time redirect to https://toster.ru and all this from the controller.
I searched, but I couldn't find anything, can anyone come across a similar problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rikcon, 2015-05-13
@Rikcon

Write to the session.

R
Roman Frank, 2015-05-14
@Akellacom

You most likely need to dig towards "Cross-Domain Requests"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question