withErrors example


    public function withInput()
    {
        $session = Services::session();
        $session->setFlashdata('_ci_old_input', [
            'get'  => $_GET ?? [],
            'post' => $_POST ?? [],
        ]);

        $this->withErrors();

        return $this;
    }

    /** * Sets validation errors in the session. * * If the validation has any errors, transmit those back * so they can be displayed when the validation is handled * within a method different than displaying the form. * * @return $this */
Home | Imprint | This part of the site doesn't use cookies.