Part 22 CodeIgniter 4 Tutorial Series in Urdu/Hindi: 02 Authentication | validating data in models

196 views

Published by Learning Shala

Web Development

Published on 30 August, 2020
Category :

Codeigniter, Web Development

About :

Hello Friends,
Welcome to Part 22 of The CodeIgniter 4 Tutorial Series in Urdu/Hindi. Today in this Codeigniter 4 video tutorial of Authentication, we are going to learn validation users with the model.

For many people, validating data in the model is the preferred way to ensure the data is kept to a single standard, without duplicating code. The Model class provides a way to automatically have all data validated prior to saving to the database with the insert(), update(), or save() methods.

The first step is to fill out the $validationRules class property with the fields and rules that should be applied. If you have custom error message that you want to use, place them in the $validationMessages array:

Playlist Videos
Related Videos