previous_url example


        return current_url();
    }

    /** * Wrap helper function to use as view plugin. * * @return mixed|string|URI */
    public static function previousURL()
    {
        return previous_url();
    }

    /** * Wrap helper function to use as view plugin. */
    public static function mailto(array $params = []): string
    {
        $email = $params['email'] ?? '';
        $title = $params['title'] ?? '';
        $attrs = $params['attributes'] ?? '';

        

    public function back(?int $code = null, string $method = 'auto')
    {
        Services::session();

        return $this->redirect(previous_url()$method$code);
    }

    /** * Sets the current $_GET and $_POST arrays in the session. * This also saves the validation errors. * * It will then be available via the 'old()' helper function. * * @return $this */
    public function withInput()
    {
Home | Imprint | This part of the site doesn't use cookies.