In this video of CodeIgniter 4 From Scratch Series we will see what are the Model files, what CodeIgniter Models do, and how easy it is to access data from database using Model files.
To put it simple, Models in MVC pattern design are used for the following:
Access Database
Manipulate data inside Database
In some cases Models are used for data validation
In CodeIgniter 4 you can create two types of models:
Type 1 extends the CodeIgniter 4 Model class
Type 2 is a simple Class that allows you to create more complex and more flexible methods
CodeIgniter 4 From Scratch Series, the series that are intended to help you get started with CodeIgniter 4 even if you have never worked with PHP frameworks before.
This course will not only help you get started with CodeIgniter but also will help you understand the way PHP Frameworks work.
For more information about Codeigniter 4 Controllers read the official docs
https://codeigniter.com/user_guide/in...
En esta página del sitio puede ver el video en línea CodeIgniter 4 from Scratch - #9 - Models de Duración hora minuto segunda en buena calidad , que subió el usuario Alex Lancer 12 mayo 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 35,943 veces y le gustó 353 a los espectadores. Disfruta viendo!