can we pass the array through redirect method ? if yes then how ?
$conditions = { [“Name”]=> ‘abc’ [“job”]=> ‘CEO’] }
return $this->redirect([‘action’=>‘index’,0,1,$conditions]);
can we pass the array through redirect method ? if yes then how ?
$conditions = { [“Name”]=> ‘abc’ [“job”]=> ‘CEO’] }
return $this->redirect([‘action’=>‘index’,0,1,$conditions]);
Wouldn’t a redirect indicate GET parameters on the URL? In which case you could JSON & URL encode it. Note that GET isn’t unlimited so pack it as best you can. Otherwise, shared mem / session variable / local storage / cookie.
What are you wanting the URL to look like when you do this?