![]() |
how to use custome validation in model??
i have tried and followed the documentation but i am getting the following error the documentation i follow : model validation validation this is my validation file code App\Validation : Code: <?php this is my model PHP Code: <?php this is my controller : PHP Code: <?php Quote:To store your validation rules, simply create a new public property in the Config\Validation class with the name of your group. (02-02-2023, 05:02 AM)kenjis Wrote:Quote:To store your validation rules, simply create a new public property in the Config\Validation class with the name of your group. ohh i see, sorry I misunderstood, Is there another way to store validation rules per file?
The validation rule is an array.
See https://codeigniter.com/user_guide/model...validation You can get it from another class like Administrators and set it to the property. |
Welcome Guest, Not a member yet? Register Sign In |