(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Ā