69,976 questions
Score of 2
1 answer
134 views
Auto routing with modules in Codeigniter 4
I'm new to CI4 and I'm trying to use the "auto routing (improved)" feature along with modules. I want to access controllers/methods inside modules like this:
https://example.com/tracking/...
Score of 3
2 answers
193 views
How to accurately "JSON.stringify" in php (codeigniter4) according to Node/express JSON.stringify for Sha256 validation?
I'm having problem comparing a sha256 for a webhook validation from this documentation:
API doc: docs.api.delyva.com
API guide: delyva blog
webhook validation (sample from API provider/delyva):
const ...
Advice
1
vote
1
replies
96
views
How to have separate ContentSecurityPolicy.php for different environments in CI4?
I am enabling CSP for a CI4 project and I wonder how we can have different Content Security Policy directives for development and production.
Separate ContentSecurityPolicy.php files in Config\...
Score of 0
1 answer
148 views
Getting 404 Not Found on POST request to /auth/login (GET works fine)
I am developing a login system using CodeIgniter 4 and PHP 8.
When I access the login page via GET (/auth/login), the view loads correctly. However, when I submit the form using POST to the same URL, ...
Score of 0
1 answer
154 views
Why do two terminals show different PHP versions?
I have a legacy project that I've been working on for a while. It works on PHP version 8.1.10, and I can change the PHP version in Laragon without any issues.
That is, until I start working on a new ...
Score of 3
1 answer
120 views
CodeIgniter 3 odbc affected rows
Running PHP 8. I have just upgraded CodeIgniter from 3.0.4 to 3.1.13.
Before the upgrade, the affected_rows() worked fine and gave me the correct quantity.
Now it just gives me a TypeError.
This is a ...
Score of 0
1 answer
129 views
Datatables pagination not working - table never updates
I'm working on a project upgrading our website- jquery/datatables/codeigniter. In the previous version, I had no problem with this datatable. But now, for some reason the pagination isn't working. ...
Score of 0
0 answers
187 views
Google Login Redirect Not Working in CodeIgniter 4: 'Page Does Not Exist' Error on Callback
I'm integrating Google OAuth login in my CodeIgniter project, but I'm encountering an issue with the redirect URI after successfully authenticating with Google. Here's a summary of the problem:
My ...
Score of 1
2 answers
125 views
Displaying about to expire items
I'm displaying Expired Items using this (codeigniter 3)
$qs6="SELECT a.item_name,a.item_code,b.category_name,a.expire_date from db_items as a,db_category as b where b.id=a.category_id and a....
Score of 2
0 answers
144 views
SOCKET_EAGAIN error on Nesk\Puphpeteer with Codeigniter project
Getting next clue/socket-raw vendored error (Socket\Raw\Exception) when trying to launch Puppeteer browser:
Socket operation failed: Resource temporarily unavailable (SOCKET_EAGAIN)
Socket\Raw\...
Score of 0
1 answer
120 views
CodeIgniter email function does not work on Prohoster SMTP
My website was developed in PHP using the CodeIgniter framework. On the development server, everything worked perfectly, but after migrating the site to Prohoster, the email sending feature stopped ...
Score of 1
1 answer
70 views
php CI 3 custom library => passing parameter to someclass
I am really new to Codeigniter, and just learning from scratch. I use CI3.
in native PHP I have a function like this
( to calculate the number of days between two dates) :
function dateDiff($date1, $...
Score of 0
0 answers
61 views
Codeigniter 3... Undefined Property $Ngetest
Models: Ngetest.phpp
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Ngetest extends CI_Model
{
public function showEcho()
{
return "naisu";
...
Score of -1
2 answers
138 views
AJAX file upload request will not end [closed]
I am trying to upload an image to the server but the request will not end. In DevTools, the request shows as pending while, in the backend, php is continuously writing to an ever growing file until I ...
Score of 1
1 answer
132 views
CodeIgniter 4 session data has been lost inside a if condition after redirect
Flow:
User fills a form with an email and gets a passcode.
I generate and store this passcode (checksum_code) in the session using session()->set(...).
Then I redirect() the user to a ...