private function redirect(string $redirect, int $categoryID, int $postTypeID)
    {
        $adminPrefix = Config::get('project')['adminPrefix'];
        if($redirect == 'save') {
            $redirectUrl = "/".$adminPrefix."/".App::getLocale()."/post-type/categoryupdate/".$categoryID;
            $view = 'categoryupdate';
            $redirectID = $categoryID;
        }else if($redirect == 'close') {
            $redirectUrl = "/".$adminPrefix."/".App::getLocale()."/post-type/categorylist/".$postTypeID;
            $view = 'categorylist';
            $redirectID = $postTypeID;
        }else{
            $redirectUrl = "/".$adminPrefix."/".App::getLocale()."/post-type/categorycreate/".$postTypeID;
            $view = 'categorycreate';
            $redirectID = $postTypeID;
        }

        return[
            "url" => $redirectUrl,
            "view" => $view,
            "id" => $redirectID
        ];
    }
private function redirect(string $redirect, int $categoryID, int $postTypeID)
    {
        $adminPrefix = Config::get('project')['adminPrefix'];
        if($redirect == 'save') {
            $redirectUrl = "/".$adminPrefix."/".App::getLocale()."/post-type/categoryupdate/".$categoryID;
            $view = 'categoryupdate';
            $redirectID = $categoryID;
        }else if($redirect == 'close') {
            $redirectUrl = "/".$adminPrefix."/".App::getLocale()."/post-type/categorylist/".$postTypeID;
            $view = 'categorylist';
            $redirectID = $postTypeID;
        }else{
            $redirectUrl = "/".$adminPrefix."/".App::getLocale()."/post-type/categorycreate/".$postTypeID;
            $view = 'categorycreate';
            $redirectID = $postTypeID;
        }

        return[
            "url" => $redirectUrl,
            "view" => $view,
            "id" => $redirectID
        ];
    }
private function redirect ( string $ redirect , int $ categoryID , int $ postTypeID ) { $ adminPrefix = Config :: get ( 'project' ) [ 'adminPrefix' ] ; if ( $ redirect == 'save' ) { $ redirectUrl = "/" . $ adminPrefix . "/" . App :: getLocale ( ) . "/post-type/categoryupdate/" . $ categoryID ; $ view = 'categoryupdate' ; $ redirectID = $ categoryID ; } else if ( $ redirect == 'close' ) { $ redirectUrl = "/" . $ adminPrefix . "/" . App :: getLocale ( ) . "/post-type/categorylist/" . $ postTypeID ; $ view = 'categorylist' ; $ redirectID = $ postTypeID ; } else { $ redirectUrl = "/" . $ adminPrefix . "/" . App :: getLocale ( ) . "/post-type/categorycreate/" . $ postTypeID ; $ view = 'categorycreate' ; $ redirectID = $ postTypeID ; } return [ "url" => $ redirectUrl , "view" => $ view , "id" => $ redirectID ] ; }
Redirect parameters used in frontend.

@param  string $redirect
@param  int    $categoryID
@param  int    $postTypeID
@return array
Redirect parameters used in frontend .