Questions tagged [codeigniter-3]
For questions specific to the 3rd release of CodeIgniter, an Application Development Framework (a toolkit) is designed for people who build websites using PHP. If your problem isn't specific to this version, use just [codeigniter].
codeigniter-3
5,493
questions
0
votes
0
answers
11
views
CodeIgniter 3: Fatal Error. Uncaught error: Class 'CI_Controller' not found
So this is a kinda old project running CI3 and we're facing this issue. It's very sporadic, it seems like it happens when requesting Ajax routes and the temporary fix testers have found is to "...
-1
votes
0
answers
16
views
Creation of dynamic property Welcome::$session is deprecated in CI3 php 8.2 issue
A PHP Error was encountered
Severity: 8192
Message: Creation of dynamic property Welcome::$session is deprecated
Filename: core/Loader.php
Line Number: 1302
Backtrace:
File: D:\xampp\htdocs\...
1
vote
1
answer
21
views
Codeigniter failing to load CI_Exceptions
I have an codeigniter 3 app deployed to an ubuntu server.
When one of my models (assumably) hits an error, I am getting this message:
Fatal error: Uncaught Error: Class "CI_Exceptions" not ...
1
vote
0
answers
26
views
Codeigniter - I'm having an issue with the dropdown it’s not populating the dropdown as expected, and I’m not sure what the exact problem is
When I tried to print the data, it is being printed correctly. However, I'm having trouble with the view file it’s not populating the dropdown as expected. If anyone knows what might be wrong, please ...
-1
votes
0
answers
34
views
I’m having trouble with codeigniter password verification. The password_verify() function keeps failing and going to the else statement
Issue:
The password_verify() function always returns false when i'm trying to login, even though the password seems to be hashed correctly when registered. I have tried debugging by printing the plain ...
0
votes
0
answers
26
views
how to create pdf by dompdf with background image?
i use simply following to print some data in pdf by dompdf in my codeigniter 3 project. here is my controller method:
public function index() {
// Load Dompdf library
$dompdf = new Dompdf\...
0
votes
0
answers
11
views
Message: mysqli::real_connect(): (HY000/2002): No route to host [duplicate]
i have codeigniter 3.1.11 on ubuntu 24 and i am not able to connect mysql
here my error message
Message: mysqli::real_connect(): (HY000/2002): No route to host
even my username and password are ...
0
votes
0
answers
22
views
resolve ajax failure in codeigniter 3 view page?
in codeigniter 3 view page i have following to edit comments :
function toggleEdit(commentId) {
console.log("Toggling edit for comment ID:", commentId);
var commentText = ...
0
votes
0
answers
23
views
how should i print data to pdf fetched from phpmyadmin in codeigniter 3 view page?
in codeigniter 3 view page i use following ajax to fetch some data from phpmyadmin which consisted of some html data:
$(document).ready(function() {
$('#fetchDataButton').click(function() {
...
-2
votes
0
answers
31
views
How to retrieve file/image from one project to another project in codeigniter php
I am new to php codeigniter, Am tring to get image dynamically from one project to another project codeigniter. Below are the project urls.
C:\xampp\htdocs\newproject\
C:\xampp\htdocs\oldproject\
...
0
votes
1
answer
47
views
multiple image upload issue while editing images in codeigniter php
i have an image upload form, while adding the upload is working fine. Now my edit form looks like below:
<input type="hidden" name="pimage2old" value="<?...
-2
votes
1
answer
27
views
How to retrieve images/files from one server to another server in php codeigniter
I have two projects and upload paths will be like below.
http://localhost/project1
http://localhost/project2
Upload files/images folder paths below.
C:\xampp\htdocs\project1\application\assets\...
-5
votes
1
answer
72
views
how to retrieve a file using php
I want to retrieve a file/image from specific path in php, I was tried different ways like file_get_contents and opendir and readdir like etc , but unable to find any solutions, Can you please help on ...
0
votes
1
answer
17
views
Codeigniter 3: Inserting Dynamic Input type = "file" Course>Section>Media Field
<script>
let mediaHtml = `
<div class="mediaItem">
<input type="text" name="sections[${sectionDiv.data('section-id')}][media][${mediaCounter}][...
0
votes
1
answer
51
views
Append cloned row to latest child where the button is clicked
I have a table with a button that when clicked, I save it in the DB via AJAX. If successful, it should clone the current row where the button is in, and then append it to the latest child. Saving it ...