• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Form validation not working

#7
(04-19-2017, 10:01 AM)ciadmin Wrote:
(04-19-2017, 09:20 AM)donpwinston Wrote: helper('form');
$validator = new \CodeIgniter\Form\Validator();

I get a class not found error for Validator. I take it this is not the way to do it but the docs do it this way.

Er, the docs don't do it your way... https://bcit-ci.github.io/CodeIgniter4/l...he-library


Code:
$validator = \Config\Services::validation();

The tutorial does it differently. https://bcit-ci.github.io/CodeIgniter4/t...items.html
Simpler is always better
Reply


Messages In This Thread
Form validation not working - by patelprem1992 - 02-11-2017, 08:39 AM
RE: Form validation not working - by albertleao - 02-11-2017, 11:12 AM
RE: Form validation not working - by donpwinston - 04-19-2017, 09:20 AM
RE: Form validation not working - by ciadmin - 04-19-2017, 10:01 AM
RE: Form validation not working - by donpwinston - 04-19-2017, 11:49 AM
RE: Form validation not working - by qury - 03-23-2017, 12:07 PM
RE: Form validation not working - by qury - 03-28-2017, 03:20 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.