Welcome Guest, Not a member yet? Register   Sign In
Is it impossible to redirect back or to another route with POST method request?
#3

(11-02-2020, 03:04 PM)includebeer Wrote: Have you try this?
PHP Code:
return redirect()->back()->withInput()->with('errors'$this->validator->getErrors()); 

Can you show what your tried and what version of CI, 3 or 4?
I've tried this method with a slightly different code. but the 404 File not Found error always appears. Because I'm doing a redirect from the PUT request routes back to the route with POST request.

My Code : 

PHP Code:
$validation = \Config\Services::validation():
return 
redirect()->back()->withInput()->with('validation'$validation); 
Reply


Messages In This Thread
RE: Is it impossible to redirect back or to another route with POST method request? - by mrardiyansyah - 11-03-2020, 09:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB