Page 1 of 1

RedirectContent with $params?

Posted: Tue Apr 08, 2008 6:50 pm
by Sonya
Hello,

is there any function to redirect to other page (like RedirectContent($id)) with parameters?

I need to redirect to another page and passing through $message variable into redirected template. Something like this:

Code: Select all

$this->RedirectContent($id, $params, $message);
I do need to redirect to another page and cannot just use ProcessTemplate() to avoid double submission of form. I need the complete reload of the page but with parameters.

Thank you,
Sonya

Re: RedirectContent with $params?

Posted: Tue Apr 08, 2008 6:55 pm
by calguy1000
No, there isn't a method for that, you'll have to write one.

it isn't that hard though, you just have to build the URL and then call redirect()

Re: RedirectContent with $params?

Posted: Tue Apr 08, 2008 7:57 pm
by Sonya
Hello calguy1000,

thank you for your answert.
calguy1000 wrote: it isn't that hard though, you just have to build the URL and then call redirect()
Do you mean redirect with GET-Paramter? I have to pass a message in cyrillic letters and it looks ugly if two or more sentences are url-encoded and sticked to url.  :-[

Re: RedirectContent with $params?

Posted: Wed Apr 09, 2008 3:53 pm
by duclet
Here is an idea. Have a page that receives the data, store it to session and then redirect to whatever page that is the recipient. That page can get the data from the session and unset it when it is done. Obviously not the greatest of solutions since I can already think of a problem with it but it should be able to do the trick.