在zend地址栏中使用_redirect()时,不显示新的url

First I want to clear something about me is that I am new to PHP and Zend.

I am developing a site using zend framework and here is a action call successAction....

public function successAction()
{
    $responseParams= $this->_request->getParam('responseparams');
    if (isset($responseParams)){
        $pgResArray = explode("|", $responseParams);        
        if ($pgResArray[1] == 'SUCCESS') {
            switch ($pgResArray[4]) {
                case 'xyz':
                    $this->_redirect('/xyz');
                    break;
                case 'pqr':
                    $this->_redirect('/pqr');
                    break;
                case 'abc':
                    $this->_redirect('/abc');
                    break;
            }
        }
    }


}

When the payment is successfully made by client the server throws the success flag to my site and I decided where to redirect now.

Every redirect url have some soap request.

My problem is that when I come back from payment gateway, address bar shows the url of payment gateway, but in the background all process done.

Redirect is working well but not shows on screen.

How to solve this...

Second thing what I want is that when I requesting to the soap server the screen will show processing image.

you may need to set the exit option on the action utility method _redirect(), otherwise you may wish to look into using the action helper redirector() as it has more available functionality.

Second thing what I want is that when I requesting to the soap server the screen will show processing image.

This function is usually achieved using javascript, you may wish to explore the jquery javascript library as a bit of a javascript short cut.