Exemplo n.º 1
0
 /**
  * Return the url to redirect to upon success
  *
  * @return  Url
  */
 public function getRedirectUrl()
 {
     if ($this->redirectUrl === null) {
         $this->redirectUrl = $this->getRequest()->getUrl();
         if ($this->getMethod() === 'get') {
             // Be sure to remove all form dependent params because we do not want to submit it again
             $this->redirectUrl = $this->redirectUrl->without(array_keys($this->getElements()));
         }
     }
     return $this->redirectUrl;
 }