public function redirect(array $flashes = array())
    {
        foreach($flashes as $type => $message){
            $this->getAppController()->flash()->add($type, $message);
        }
        return $this->getAppController()->redirect($this->getRequest()->getRequestUri());
    }
public function redirect(array $flashes = array())
    {
        foreach($flashes as $type => $message){
            $this->getAppController()->flash()->add($type, $message);
        }
        return $this->getAppController()->redirect($this->getRequest()->getRequestUri());
    }
public function redirect ( array $ flashes = array ( ) ) { foreach ( $ flashes as $ type => $ message ) { $ this -> getAppController ( ) -> flash ( ) -> add ( $ type , $ message ) ; } return $ this -> getAppController ( ) -> redirect ( $ this -> getRequest ( ) -> getRequestUri ( ) ) ; }
redirects to the same same uri.

@param array $flashes
@return \Symfony\Component\HttpFoundation\RedirectResponse
redirects to the same same uri .