yii重定向数组

$this->redirect(array($redirect, 'error' => $error, 'msg' => $msg, 'details' => $details));

How can we pass array as a parameter? I have tried during redirection.

Returning:

Error 400 Your request is invalid.

Any help would be appreciated.

After a lots of tries I have found that , the array what I was passing is an associative array and passing with GET method, so while redirection if we seen in URL, associative array passing with every internal element of $details array, and same parameters are not listed at destination method, so the result will not found such a method.

If redirect to different page

$this->redirect(array('YourController/YourFunction','error'=>$error,'msg'=>$msg,'details'=>$details));

If in the same controller you just need to put your function on the array. hope this can help