Page 1 of 1

What IS $returnid?

Posted: Wed Nov 21, 2007 11:10 pm
by damon
Any good resource on understanding what $returnid is, and how to use it?

Re: What IS $returnid?

Posted: Wed Nov 21, 2007 11:11 pm
by calguy1000
$returnid is the destination page.  it's used to know what page to return to.

Re: What IS $returnid?

Posted: Wed Nov 21, 2007 11:18 pm
by damon
calguy1000 wrote: $returnid is the destination page.  it's used to know what page to return to.
That's what I'd think, too.  But the value seems to always be 0 or null;  How would I, for example, do an action and return to the calling page?  I've tried:

Code: Select all

$this->Redirect($returnid)
  and a bunch of stuff like it, but to no avail.

Re: What IS $returnid?

Posted: Wed Nov 21, 2007 11:21 pm
by calguy1000
returnid is irrelevant and will be 0 or null when handling an admin action.... but on the frontend it'll be valid.