Skip to content

Tag: codeigniter

how to push data object to array of object in php

i have data array nested in hire , how to push new value to array [‘data’] ? The data I have is an object and I want to insert the data into each array result AND this my code i have code I have a data object that I want to insert into [‘data’] How to do it Answer I

CodeIgniter 4: Pass $data to the View file

Can someone help me with this? I can’t figure out on how can I show the results on the View file. I tried using $this->load->view(‘list-logs’,$data); but it shows the error Call to a member function view() on null. CONTROLLER VIEW Answer if you use CodeIgniter 4 then you must call the …

Otp is not post in database

after user submit mail id otp will be sent to that email id but my code isn’t working it post the email id in database but not the otp. Please can any one help? Controller Code auth.php Model code user_model.php Answer In your controller you are actually passing three arguments to the $this->user_mod…