![]() |
How to display an array of errors when working with redirect() in Codeigniter? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: How to display an array of errors when working with redirect() in Codeigniter? (/showthread.php?tid=88935) |
How to display an array of errors when working with redirect() in Codeigniter? - KalooDinaz - 12-05-2023 I created a form to add a product on Codeigniter. The form works fine, but I can't fully configure the validation. The Products controller, which has the add_form() method, is responsible for processing the product addition form. In this method, at the very beginning I check the validity of the fields. PHP Code: $validationRule = [ In general, everything works, but I can’t display a list of errors in the form view! I don't understand how to display the data passed to the ->with('errors', $arrErrors) method RE: How to display an array of errors when working with redirect() in Codeigniter? - ozornick - 12-05-2023 See https://codeigniter4.github.io/userguide/libraries/validation.html#redirect-and-validation-errors |