![]() |
Please for God Sake help me with Form Validation - 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: Please for God Sake help me with Form Validation (/showthread.php?tid=75578) |
Please for God Sake help me with Form Validation - seunex - 02-23-2020 I have been trying to learn CI4 i always stuck in form validation. When i try to echo out the validation it shows blank PHP Code: //* Create project Please help me learn this new challenge please RE: Please for God Sake help me with Form Validation - donpwinston - 02-23-2020 The way I do it is the following: PHP Code: if ($this->request->getMethod() == 'post' && !$validation->withRequest($this->request)->run()) { I believe you're passing no validation rules when you use $this->validate([]). RE: Please for God Sake help me with Form Validation - seunex - 02-23-2020 Thanks but I will like to get my own custorm error set In CI3 we did if($this->form_validstion-.run() == false) We use run to run the validation and use validarion_erros to get it. I need better way to validate pls RE: Please for God Sake help me with Form Validation - InsiteFX - 02-25-2020 See my post in your other topic for this. |