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...
Sur cette page du site, vous pouvez voir la vidéo en ligne CodeIgniter 4 from Scratch - #9 - Models durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Alex Lancer 12 mai 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 35,943 fois et il a aimé 353 téléspectateurs. Bon visionnage!