Core/Framework/Amvc/Controller/Controller.php
protected function redirect(string $target, array $params = [], bool $clear_post = true)
    {
        if (empty($params)) {
            $params = $this->params;
        }

        $this->redirect = [
            $target,
            $params,
            $clear_post
        ];

        return $this;
    }
protected function redirect(string $target, array $params = [], bool $clear_post = true)
    {
        if (empty($params)) {
            $params = $this->params;
        }

        $this->redirect = [
            $target,
            $params,
            $clear_post
        ];

        return $this;
    }
protected function redirect ( string $ target , array $ params = [ ] , bool $ clear_post = true ) { if ( empty ( $ params ) ) { $ params = $ this -> params ; } $ this -> redirect = [ $ target , $ params , $ clear_post ] ; return $ this ; }
Redirects from one action to another

@param string|array $target
Name of redirectaction to call within this controller or an array aof app, controller and action name
which will be called as redirect.
@param array $params
Optional key => value array of params to pass into redirect action (Default: empty array)
@param bool $clear_post
Optional flag to control emptying posted data (Default: true)
Redirects from one action to another