Welcome Guest, Not a member yet? Register   Sign In
return error from form
#1

(This post was last modified: 07-23-2020, 03:00 AM by 68thorby68.)

Hi,

I'm trying to use Language files in CI4 for (amongst other things) customs errors. However, I'm not sure how to construct a response to a form submission with a customer error?

PHP Code:
if(empty($a) && !empty($b)) {
return 
response()->with('error'lang('myfile.AisRequiredWithB'));



I'm sure there is a simple process to achieve this?

Any assistance is appreciated
Reply


Messages In This Thread
return error from form - by 68thorby68 - 07-23-2020, 03:00 AM
RE: return error from form - by InsiteFX - 07-23-2020, 03:16 AM
RE: return error from form - by 68thorby68 - 07-23-2020, 03:50 AM
RE: return error from form - by InsiteFX - 07-23-2020, 08:45 AM
RE: return error from form - by 68thorby68 - 07-23-2020, 01:02 PM
RE: return error from form - by InsiteFX - 07-24-2020, 08:06 AM
RE: return error from form - by 68thorby68 - 07-24-2020, 11:10 AM
RE: return error from form - by InsiteFX - 07-24-2020, 12:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB