public function startup()
    {
        if (!$this->request->is('post') || !$this->_actionCheck()) {
            return null;
        }

        list($url) = explode('?', $this->request->getRequestTarget());

        $params = $this->_filterParams();
        if ($params) {
            $url .= '?' . http_build_query($params);
        }

        return $this->_registry->getController()->redirect($url);
    }
public function startup()
    {
        if (!$this->request->is('post') || !$this->_actionCheck()) {
            return null;
        }

        list($url) = explode('?', $this->request->getRequestTarget());

        $params = $this->_filterParams();
        if ($params) {
            $url .= '?' . http_build_query($params);
        }

        return $this->_registry->getController()->redirect($url);
    }
public function startup ( ) { if ( ! $ this -> request -> is ( 'post' ) || ! $ this -> _actionCheck ( ) ) { return null ; } list ( $ url ) = explode ( '?' , $ this -> request -> getRequestTarget ( ) ) ; $ params = $ this -> _filterParams ( ) ; if ( $ params ) { $ url .= '?' . http_build_query ( $ params ) ; } return $ this -> _registry -> getController ( ) -> redirect ( $ url ) ; }
Checks if the current request has posted data and redirects the users
to the same action after converting the post data into GET params

@return \Cake\Http\Response|null
Checks if the current request has posted data and redirects the users to the same action after converting the post data into GET params