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