You can use the PHP built-in http_build_query function to create parameters, and then pass this to gotoUrlAndExit() in the Zend Framework.
$url = "https://external.gateway.com/"; $data = array('foo'=>'bar', 'baz'=>'boom', 'cow'=>'milk', 'php'=>'hypertext processor'); $query = http_build_query($data); $this->_helper->redirector->gotoUrlAndExit($url . '?' . $query);
source share