public function redirect($url=null, $msg=null, $type=null)
	{
		if ($url)
		{
			$this->setRedirect($url, $msg, $type);
		}

		if ($this->_redirect != null)
		{
			\App::redirect($this->_redirect, $this->_message, $this->_messageType);
		}
	}
public function redirect($url=null, $msg=null, $type=null)
	{
		if ($url)
		{
			$this->setRedirect($url, $msg, $type);
		}

		if ($this->_redirect != null)
		{
			\App::redirect($this->_redirect, $this->_message, $this->_messageType);
		}
	}
public function redirect ( $ url = null , $ msg = null , $ type = null ) { if ( $ url ) { $ this -> setRedirect ( $ url , $ msg , $ type ) ; } if ( $ this -> _redirect != null ) { \ App :: redirect ( $ this -> _redirect , $ this -> _message , $ this -> _messageType ) ; } }
Method to redirect the application to a new URL and optionally include a message

@param   string  $url   URL to redirect to. Optional.
@param   string  $msg   Message to display on redirect. Optional.
@param   string  $type  Message type. Optional, defaults to 'message'.
@return  void
@deprecated
Method to redirect the application to a new URL and optionally include a message