src/Controller/Component/FlashAndRedirectTrait.php
protected function _handleRedirect($type, $options) {
		if (isset($options[$type . 'RedirectUrl']) && $options[$type . 'RedirectUrl'] !== false) {
			$controller = $this->getController();
			$result = $controller->redirect($options[$type . 'RedirectUrl']);
			$this->_redirectResponse = $result;

			return $result;
		}

		$this->_redirectResponse = null;

		return false;
	}
protected function _handleRedirect($type, $options) {
		if (isset($options[$type . 'RedirectUrl']) && $options[$type . 'RedirectUrl'] !== false) {
			$controller = $this->getController();
			$result = $controller->redirect($options[$type . 'RedirectUrl']);
			$this->_redirectResponse = $result;

			return $result;
		}

		$this->_redirectResponse = null;

		return false;
	}
protected function _handleRedirect ( $ type , $ options ) { if ( isset ( $ options [ $ type . 'RedirectUrl' ] ) && $ options [ $ type . 'RedirectUrl' ] !== false ) { $ controller = $ this -> getController ( ) ; $ result = $ controller -> redirect ( $ options [ $ type . 'RedirectUrl' ] ) ; $ this -> _redirectResponse = $ result ; return $ result ; } $ this -> _redirectResponse = null ; return false ; }
Handles the redirect options.

@param string $type Prefix for the array key, mostly "success" or "error"
@param array $options Options
@return mixed
Handles the redirect options .