peili
(Leet)
October 12, 2010, 11:14pm
1
Hi there,
I wasn’t able to find topic on my issue.
If someone submits a certain get parameter (e.g. index.php?r=Action&my_parameter =2) I would like to keep that parameter for all futher urls.
What is the best way to achive this.
Thanks in Advance,
Philipp
peili
(Leet)
October 13, 2010, 12:04am
2
peili
(Leet)
October 21, 2010, 10:57pm
3
This doens’t work if i call $this-redirect() .
Is there another way someone can recommend?
best wishes peili
zaccaria
(Matteo Falsitta)
October 22, 2010, 6:26am
4
You have to post in all url, if you call redirect you should:
$this->redirect(array('route', 'myParameter'=>$_GET['myParameter']));
Or save it in the session.
peili
(Leet)
October 22, 2010, 7:44am
5
zaccaria:
You have to post in all url, if you call redirect you should:
$this->redirect(array('route', 'myParameter'=>$_GET['myParameter']));
Or save it in the session.
Any idea how i can set it globally without changing each call?
zaccaria
(Matteo Falsitta)
October 22, 2010, 8:01am
6
You can save in the session, and so avoid to passing at each call.
There are no ways for specify a parameter in each call.
peili
(Leet)
October 22, 2010, 8:46am
7
zaccaria:
You can save in the session, and so avoid to passing at each call.
There are no ways for specify a parameter in each call.
Unfortunatelly saving parameter in session is no option for me.
Urls have a parameter for an iFrame view. If the Url is linked to a different site those parameter will be lost.
zaccaria
(Matteo Falsitta)
October 22, 2010, 10:48am
8
In your unlucky case, you have to set the parameter everiwhere, or you can use session and pay attention to add the parameter to the url of each link that drives to an external page.
peili
(Leet)
October 22, 2010, 1:20pm
9
I found a way:
$this->redirect(array(‘name’));
Using an array the method createUrl is called
zaccaria
(Matteo Falsitta)
October 22, 2010, 1:29pm
10
And what about the parameter you have to set all the times?
rawtaz
November 20, 2010, 9:05pm
11
It’s added by his custom url manager class.