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() “).
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.
Continuing with the series on CodeIgniter 4, in this video I show how to delete a record in the database using the “delete” method of the Model.
In building the “action” to delete, I make a brief introduction to the “session” library and how to use, from it, the methods “setFlashData” and “getFlashData”.
The video is available at: https://www.youtube.com/watch?v=JFOTRqfy9bU
I hope you enjoy the video.
Today I was studying and developing an application tests that must connect with a Realtime Database of Google Firebase. To integrate my PHP project with Firebase, I added the firebase-php library (Available at: https://github.com/kreait/firebase-php ).
Well then. My project is being “executed” in a local environment (WAMPP) and as soon as I tried to recover the data previously registered in the Firebase database, I came across the following error:
Save guys …
In this video, I continue to build a CRUD in the CodeIgniter 4 framework , showing how to fetch data from a record in the database (by ID) to display on the form and later, show how to update the database using an available method in MODEL .