Page 1 of 1

CreateReturnLink & $params array

Posted: Thu Aug 06, 2009 8:31 am
by manmower
Hi there!
Im trying to make a returnlink wich also sends some params back... But that just doesn't work...
$this->smarty->assign('back_href', $this->CreateReturnLink($id, $returnid, '', array('categoryid'=>$categoryid), true));

this creates a link that looks like this:
index.php?page=bulletins&cntnt01categoryid=49

but when i print the $params array it doesnt show the categoryid... Does anybody know why?

Thanks in advance!

Re: CreateReturnLink & $params array

Posted: Tue Aug 11, 2009 10:33 am
by manmower
I hate to bump this but I really need a solution. Maybe someone has another idea how to create a link to go back to a previous page using the right parameters? Im currently working on a search function for my module. And when you visit a search result I want to be able to go back to the search results. So I need the right parameters to go back to the right search results (mainly the search keywords...) Anybody any idea? I could use Sessions but that doesnt seem like a very clean idea...

Thanks

Re: CreateReturnLink & $params array

Posted: Tue Aug 11, 2009 2:58 pm
by milehigh
Here's what I use for something similar...(be sure $searchedFor is an array)

$this->smarty->assign('displayResults', $this->CreateFrontendLink($id,$returnid,'doSearch','Return Text',$searchedFor));

Re: CreateReturnLink & $params array

Posted: Wed Aug 12, 2009 7:31 am
by manmower
I guess that's a link for sending parameters to the next page so you can use those parameters to create a returnlink... I already have the right parameters in my back where I want to create a ReturnLink. The problem is that the page where the link returns to doesnt "read" those parameters...