What IS $returnid?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
damon

What IS $returnid?

Post by damon »

Any good resource on understanding what $returnid is, and how to use it?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: What IS $returnid?

Post by calguy1000 »

$returnid is the destination page.  it's used to know what page to return to.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
damon

Re: What IS $returnid?

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: What IS $returnid?

Post by calguy1000 »

returnid is irrelevant and will be 0 or null when handling an admin action.... but on the frontend it'll be valid.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Developers Discussion”