How to use smtp as a third party library in codigniter

i am using codeingniter framework for my website. And i am trying to adding smtp as third party library. How could i add this?

View details »

How to order row of database after each data entry

I want my database to follow a specific order (say Expiry date) after each data entry. That is, each time I enter expiry date in the database, the database will reorder according to ascending ord

View details »

How to rename with a unique id a file uploaded in codeigniter?

I want to use uniqid("",true) when uploading a file but it says that I cannot upload that filetype:

View details »

google cloud platform app.yaml for codeigniter php73

i can't figure out how to setup app.yaml for codeigniter 3 with php 7.3 gcp every useful link is about php55.. thanks in advance. runtime: php73 # Replace with php73 to use the PHP 7.3 runtime han

View details »

how to cronjob perform in CI.. to call the particular controller in automatically call those send the email

Actually i want to perform the cron job those particular time of session call automatically send the email also i calling the controller particular in CI but it unable to perform the cron job.?

View details »

invalid registration while sending push notification in php

i am following this Firebase Cloud Messaging (FCM) Server Side Implementation. . but got an error of invalidregistrationid. also search on stackoverflow links 1. a link. 2. a link. class abc{ f

View details »

Pass an array to the system core Controller.php in CodeIgniter

I am in the process of updating my CodeIgniter app from version 2.x to 3.1. Previously, I used to call this function to count the number of non-zero numbers in the passed-in array: function getCou

View details »

DataTables warning: invalid JSON response when there are no records in the table. Also added empty array but records are not displaying

I am using CodeIgniter with the bootstrap data table to display the records from the database. I am getting the error when there are no records are available in the table. DataTables warning:

View details »

Where to place robots.txt file in Codeigniter project

I have gone through many answers regarding my question but my confusion is still there. Where I should I place 'robots.txt' file in my Codeigniter Project. That means, should I place the file inside

View details »

Codeigniter : Unable to load the requested language file : language/Image/Image_lang.php

Im using a backoffice to upload images in my database. The problem is when i want to upload a file i get this error. I tried to add this empty file in my application, but the upload doesnt working

View details »

How can I submit two forms with one button? CodeIgniter

CODEIGNITER I want to submit two forms with one button. if a radio button is not checked i only submit the first form, but when i check the radio button appear more information (second form). I wa

View details »

Manual Input Key For AES_ENCRYPT Using PHP

i want to insert manualy the password for aes_encrypt(pertanyaan, 'pass') from soal, which is 'pass' will insert manualy without change the code. this is my code function inputSoalIPA(){ $id_so

View details »

codeigniter create ci_session table crashes mysql

crashes after running Codeigniter create table my sql query to create session table : CREATE TABLE IF NOT EXISTS ci_sessions ( id varchar(128) NOT NULL, ip_address varchar(45) NOT NULL, timestamp i

View details »

How to pass parameter to custom library with codeigniter?

I am creating a custom library in codeigniter, i want to pass parametere in constructor. Any solution appriciated! function __construct( $iteration_count_log2, $portable_hashes ) { $thi

View details »

Datatables: Cannot read property 'mData' of undefined with dynamic data

I Know this question has been asked many times but I have a dynamic table with quite a lot of THs / TDs created dynamically and this is also created by users. So it's hard to measure. One thing I k

View details »

fetch data from multiple database using joins in codeigniter

I am using CI to fetch data from multiple database using join and i have also created multiple instances of database. I get the result but only the one instance which I mentioned while fetching data

View details »

Menu and submenu repeating using php

Menu and Submenu repeting after used foreach. I used Codeigniter and MySql to develop dashboard. Now I try to create dynamic menu and submenu but all the menu and submenu repeating twice. The resul

View details »

Codeigniter multi Table Joins but result reatable

// $courses = $this->db->select('c.id,c.title,c.price,c.discount_flag,c.discounted_price, c.user_id, c.product_type, $courses = $this->db->select('c.*, concat(u.first_na

View details »

I am not able to get food items from a particular restaurant

I am doing a website in codeigniter which is food ordering system. Food can be ordered by typing either the name of the food item, its category or even subcategory. First a restaurant is selected an

View details »

Prevent inserting a line db if an input type=“date” is not filled

I want to make a form where the user can choose what he would like to answer. The only problem here is the input type="date". Even if this kind of input is untouched, my code is creating a row in

View details »