[CodeIgniter 4 video lesson] – Models – Creating a CRUD (Consult / List)

Hail guys !!!

In this class of the CodeIgniter 4 series , I continue the subject related to “ models ” and increase the CRUD that I started to develop in the previous video. I show you how to retrieve all data from a database table using a method of our “model” class. These fetched data are returned to a controller and later passed on to be displayed in a “ view ” (via an HTML table).

So, now the CRUD of our project already has the form for registering new records and has a “view” to display all the records that are registered in the table. To “link” the two pages I used the “url” helper (and also showed how to import a helper into a controller).

The video is available at:  https://www.youtube.com/watch?v=g64Lazh41fA&utm_source=rafaelwendel

Check out the documentation on “models” on CodeIgniter 4: https://codeigniter4.github.io/userguide/models/model.html

Check out the documentation on the CodeIgniter 4 helper “url”: https://codeigniter4.github.io/userguide/helpers/url_helper.html

Holds a university degree in Information Systems, a postgraduate degree in Database Systems and a master's degree in Education with a focus on Sociocommunity Technologies. He works as a professor of technical and technological education at the Federal Institute of Education, Science and Technology of São Paulo, teaching subjects in the areas of programming, database, project development and software engineering.

Posts relacionados

Leave a Reply

Your email address will not be published. Required fields are marked *