Welcome Guest, Not a member yet? Register   Sign In
Handling Multiple input with same field name as array. and show valdiation error
#7

(This post was last modified: 09-06-2023, 05:50 AM by sknair143.)

(09-06-2023, 05:46 AM)sammyskills Wrote: 1. Are you validating in both the model and controller?

2. Within your controller, you do not need to load the validation library again. It is already available in controllers using $this->validate().




No, i'm doing in my controller only because, i have multiple error messages for different document types.

(09-06-2023, 05:50 AM)sknair143 Wrote:
(09-06-2023, 05:46 AM)sammyskills Wrote: 1. Are you validating in both the model and controller?

2. Within your controller, you do not need to load the validation library again. It is already available in controllers using $this->validate().




No, i'm doing in my controller only because, i have multiple error messages for different document types.

How i can workout this logic ?, Because in futre may be n number of document types will be added, so i can't put static fieldsĀ 
Reply


Messages In This Thread
RE: Handling Multiple input with same field name as array. and show valdiation error - by sknair143 - 09-06-2023, 05:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB