XF 2.1 Pass vars

Robert9

Well-known member
1.
public function actionIndex()
{

shows a page with a form from template r9_freg

return $this->view('Robert9\Freg:Freg:Index', 'r9_freg', $viewParams);
}



2.
public function actionSave()
{

takes input from form and save it and go back to actionIndex

return $this->redirect(
$this->buildLink('freg', $viewParams)
);
}


Here i want to send result/some vars in $viewParams to actionIndex.


How can i do that, please?
 
.1. Post your code in the code tag if you want to be helped
2. You can add GET parameters to the link this way: $this->buildLink('link', null, ['foo' => 'bar']) and filter it this way: $this->filter('foo', 'str')
 
Back
Top Bottom