Category "codeigniter"

PHP str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

Dear all Iam getting this error on while run my app. Here below i attached the image file for the code that shows error {"data":[ ["omron","<span class=\

Codeigniter set_checkbox() keeping checked state

I have this code in my view: <input type="checkbox" name="test[]" value="1" <?php echo set_checkbox("test[]", "1") ?> >test1 <input type="chec

RestFul API For Delete And Update Get 403 Forbidden Codeigniter 4

Remember this is codeigniter 4. I need help in here. I am learning to implement about the RestFul API in codeigniter 4. Below is my detail code. Routes : $route

By click of the button the same form is added under that form but how can i get the value of the number of times it getting printed &store it in table

by click of the button the same form is added under that form but how can i get the value of the number of times it getting printed &store it in table. How

DeIndex a URL with a version ending in a hash bang

I just want to deindex or remove the page ending with #!. It is a dynamic page which fetching data from database and rendering on two URLs example.com/detail/29

Creating a new database is not working at server in codeigniter 3

I have a accounting management project where I need to store some specific data to a new database. I am fetching a issue when I am going to create a new databas

how to fix php spark serve not working and said thrown in C:\xampp\htdocs\ci-news\system\CLI\CLI.php on line 758

this is what cmd said and I don't know how to fix this I saw similar cases like this in the stackoverflow but their suggestion didn't fix my problem I hope you

CodeIgniter call_hook('post_controller_constructor') exits

I have inherited a webapp using CodeIgniter I am trying to get it to run locally on my mac when I try to go to http://localhost ,i can see via the debug logs i

How to pass calculated/final value of one function to other functions in a controller of Codeigniter application

Using sessions we can achieve this, but need this without sessions or cookies. <?php class Employees extends CI_Controller { public f

Can not upload image into the database in codeigniter

I'm trying to upload a image to the database in codeigniter , but when I write $this->load->model('Upload_model');$id = $this->Upload_model->add_ima

CodeIgniter 3 email not sending emails to other email servers but apple

For some reason I'm just getting emails to apple emails but gmail, Microsoft etc. I'm using my own smtp server with SSL, I checked SPF and there is no problems.

Fatal Error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) on line 3

I am getting this error in codeigniter 3. I had tried most of the things but none of them worked. function money_format($num = 0, $pro = 2) { %n

how to validate form data in codeigniter 4

i am new to codeigniter 4, i am currently building a registration form. when i submit reg form it give error of required fields even if i fill all fields with c

CI4 - Want to use Controller function inside another Controller

I want to create a LogController and Access it directly on other controller. I don't want to use Extends LogController as it is already extending something. If

codeigniter tutorial - changing text color based on boolean

I am working on the codeigniter tutorial but my assignment now says to add a boolean row named "importance" to the database and set one of the news articles to

How to chunk and generate pdf using dompdf in codeigniter for large data set

I have to generate a pdf file for very large data set (more than 1M). Can anyone explain how to chunk those data set into smaller units and download all data in

Codeigniter 4 get configuration array by passing a dbgroup

Many websites including official site state about connecting database connections on a dbgroup, however I hardly found a website that talks about getting only a

how to insert data into select2 search input after scan using qrcode

Example results that i want : I already did the qrcode scan and select2. It is working fine. The problem is I want that data "SBD2P3000002" to be searched in

Prompt login via saved google account

I know how to integrate "Login via google account" in any website. But in some website like zomato always prompt "login via google" account while opening. It sh

Codeigniter 4 Current/Active Controller

In Codeigniter 3 is possible to get current active class and method with this code: $active_controller = $this->router->fetch_class(); $active_fu