0

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 ...

4
  • Are you setting these values or do you want to forward existing $_POST values? Commented Jul 29, 2013 at 14:00
  • Perhaps just set different action in form? Commented Jul 29, 2013 at 14:10
  • Could you tell me the reason why you want to do that? Commented Jul 29, 2013 at 17:11
  • because I dont want to show the values to user and i also dont want to send values using a link only Commented Jul 30, 2013 at 6:47

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.