Rohitashv Singhal
Rohitashv Singhal

Reputation: 4557

how to send value in another controller using POST method

I have a scenario in yii. I am using the following code to send some values from one controller to another one as follow :

$this->redirect(array('/site/login','hello'=>'hello'));

By this method, I can use this value in sitecontroller using $_GET . Is there any method in yii that I can get this value using $_POST method.

If yes then Please share ...

Upvotes: 0

Views: 402

Answers (1)

Bogdan Burym
Bogdan Burym

Reputation: 5512

This is impossible to do such redirect this way.
In Yii and not in Yii.
Find some other solution.

Upvotes: 2

Related Questions