protected function redirectByAction()
    {
        $params = $this->request->getArguments();
        $formAction = $params["formAction"];
        $arguments = array();
        if ($params["storage"]["type"] == "pages") {
            $arguments["layoutIdentifier"] = $this->backendLayoutRepository->findByIdentifier($params["storage"]["elements"]["key"],
                explode(",", $this->extSettings['backendlayout_pids']))->getIdentifier();
        } else {
            $arguments["key"] = $params["storage"]["elements"]["key"];
            $arguments["type"] = $params["storage"]["type"];
        }
        if (key_exists("save", $formAction)) {
            $this->redirect('edit', null, null, $arguments);
        } else {
            if (key_exists("saveAndExit", $formAction)) {
                $this->redirect('list');
            }
        }
    }
protected function redirectByAction()
    {
        $params = $this->request->getArguments();
        $formAction = $params["formAction"];
        $arguments = array();
        if ($params["storage"]["type"] == "pages") {
            $arguments["layoutIdentifier"] = $this->backendLayoutRepository->findByIdentifier($params["storage"]["elements"]["key"],
                explode(",", $this->extSettings['backendlayout_pids']))->getIdentifier();
        } else {
            $arguments["key"] = $params["storage"]["elements"]["key"];
            $arguments["type"] = $params["storage"]["type"];
        }
        if (key_exists("save", $formAction)) {
            $this->redirect('edit', null, null, $arguments);
        } else {
            if (key_exists("saveAndExit", $formAction)) {
                $this->redirect('list');
            }
        }
    }
protected function redirectByAction ( ) { $ params = $ this -> request -> getArguments ( ) ; $ formAction = $ params [ "formAction" ] ; $ arguments = array ( ) ; if ( $ params [ "storage" ] [ "type" ] == "pages" ) { $ arguments [ "layoutIdentifier" ] = $ this -> backendLayoutRepository -> findByIdentifier ( $ params [ "storage" ] [ "elements" ] [ "key" ] , explode ( "," , $ this -> extSettings [ 'backendlayout_pids' ] ) ) -> getIdentifier ( ) ; } else { $ arguments [ "key" ] = $ params [ "storage" ] [ "elements" ] [ "key" ] ; $ arguments [ "type" ] = $ params [ "storage" ] [ "type" ] ; } if ( key_exists ( "save" , $ formAction ) ) { $ this -> redirect ( 'edit' , null , null , $ arguments ) ; } else { if ( key_exists ( "saveAndExit" , $ formAction ) ) { $ this -> redirect ( 'list' ) ; } } }
Redirects the request to the correct view
@author Benjamin Butschell <bb@webprofil.at>
Redirects the request to the correct view