Hey guys!!!
In this video on the CodeIgniter 4 framework, I show you how to create validation rules for a “model”, thus enabling the data to go through a check before being inserted (insert) or updated (update).
Hey guys!!!
In this video on the CodeIgniter 4 framework, I show you how to create validation rules for a “model”, thus enabling the data to go through a check before being inserted (insert) or updated (update).
Hey guys !!! To finalize the new product registration form (“product” table related to “category” table) started in the last video, in this I deal with the submission of the form inside the “controller” and call the “insert” method of the “ProductModel”.
To streamline the process, instead of taking the submitted data and “setting” them in the “model” variable, I pass the submitted data directly via “POST” as a parameter of the “insert” method (through the “method” “this->request->getPost() “).
Hey guys!!!
Continuing with the series on the CodeIgniter 4 framework, in today’s video I start the construction of the “Products” CRUD (which is a table that receives a list of the “Categories” table, using the foreign key “category_id”).
In this first part, I create the “ProductModel” and the controller “Products”. In addition, I also create the view “products_form” and in it I assemble the form for product registration.