Do you know withInput() and Validation errors? |
@kenjis of cause at earlier from CI 4.0 I didn't know what to do with redirect withinput back and get a specific error because of CI documentation The global return
PHP Code: redirect()->back()->withInput(); PHP Code: <?= service('Validation')->listErrors() ?> @kenjis I truly have been using this global CI PHP Code: redirect()->back()->withInput(); PHP Code: redirect()->back()->withInput()->with('danger/*success*/',/*In modal*/$this->modal->errors() /*or something else apart with modal */); PHP Code: session()->get('danger/*success*/'); / but I may have a view of the point that it could be good if you design a new helper function and may have a specific single error validation result perimeter or with multiple validations on its parameter something like that or this PHP Code: redirect()->back()->withInput(); in additionally, Why this PHP Code: redirect()->back()->withInput(); Code: routes priority PHP Code: redirect()->to(current_url())->withInput(); Codeigniter First, Codeigniter Then You!!
yekrinaDigitals
|
Messages In This Thread |
Do you know withInput() and Validation errors? - by kenjis - 08-16-2022, 10:18 PM
RE: Do you know withInput() and Validation errors? - by luckmoshy - 08-16-2022, 11:57 PM
RE: Do you know withInput() and Validation errors? - by InsiteFX - 08-17-2022, 12:36 AM
RE: Do you know withInput() and Validation errors? - by kenjis - 08-17-2022, 05:21 PM
RE: Do you know withInput() and Validation errors? - by luckmoshy - 08-17-2022, 11:13 PM
RE: Do you know withInput() and Validation errors? - by kenjis - 08-31-2022, 01:21 AM
RE: Do you know withInput() and Validation errors? - by kenjis - 10-16-2022, 04:40 PM
RE: Do you know withInput() and Validation errors? - by InsiteFX - 10-17-2022, 01:00 AM
|