• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
form_error is missing

#1
I am validating forms. I want display the errors using the form_error method from form_helper. In the user_guide says that this function is available en CI4 but it return not found. I opened form_helper.php and the method is missing.
Who knows anything about this?
Thanks.
Reply

#2
That should be removed. Validation errors (which is what form_error were showing, are available through the Validation library.

Though we probably need a new command to make it available to the Parser, come to think of it.... but if you're not using the Parser, you should be fine.
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
Reply

#3
@kilishan thanks for your answer. I returned the showError method from Validation library this way:
\Config\Services::validation()->showError(field);
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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