Quantcast
Channel: CodeIgniter Forums - All Forums
Browsing all 14343 articles
Browse latest View live

Controller is firing but I can't get the $_GET

I am sending a request to my CI program from a remote javascript program running in a browser. The call on the javascript client is  Code:            var xhr = new XMLHttpRequest();...

View Article


PDF stored in mssql

I have a database that is on a sqlsrv. I have managed to connect to it CI and I can retrieve the data. All that works very well indeed. My problem is with a PDF that is stored in a varbinay filed. I...

View Article


Try to combine two Codeigniter scripts, to export data from mysql to excel

I found two awesome scripts on Tech Arise Team website. The first one is: http://techarise.com/export-data-to-excel-using-codeigniter/ and the second one is:...

View Article

Security with CI

My first CI web app is now at the final stages. I've been reading articles about security for a while, especially the last couple of days. But now I want to seriously understand what the risks are...

View Article

define default locale in .env

Hello guys, can I suggest a small modification of the method detectLocale (IncomingRequest class) to be able to define the default locale in the .env file ? (only in the case where it is not defined in...

View Article


Creating a CI service for using templating engine?

I want to understand what is the best place to create instance of $templates object. I am using Plates templating engine. Code: // Create new Plates instance $templates =...

View Article

APC Cache max TTL?

Hello, I used APC cache and set $ttl to 0 (zero), and my cache was refreshed about 8-12 hours - why? (no machine restart, no manualy remove command in code). Any sugestion? My target is max life time...

View Article

I want to wildcat with active record

Hello everyone, I am using active record in codeigniter. I want to using wildcat with query string. This is my code function search($search) { $this->db->from('items');...

View Article


CodeIgniter 3.1.8 Released

CodeIgniter 3.1.8 was released today, with some changes and some bug fixes. Changes: Updated the Security, Email, and Database libraries; and the URL helper. Bug fixes: Database, email, form...

View Article


SetEnv in .htaccess file doesn't seem to work with PHP-FPM

I'm moving my CodeIgniter project to a new server, which has Apache in event mode with PHP-FPM installed. For some reason, the SetEnv directives in my .htaccess file no longer find their way into PHP:...

View Article

Codeigniter Pagination Using AJAX and API REST

Hi! Please help me to fix pagination always return one value [https://prnt.sc/iv46we] using ajax [http://prntscr.com/iv47e0] and rest API [http://prntscr.com/iv47la]. Your help would very appreciated...

View Article

routes not recognized after Post

Hi all, Since a few months I've been using CI4 for some projects and, in all honesty, Im very satisfied.  However, I'm struggling with an issue I just can't figure out.  When I navigate to a page in...

View Article

Help in converting vanilla PHP to CI (AJAX + filter + infinity scroll)

I'm trying to convert this PHP tutorial to CI Product Ajax Search Filter With Infinite Scroll More Using PHP And Mysqli. But so far, no luck. I "think" my problem is the Javascript code, specially this...

View Article


application modules for code igniter

Hi I am thinking that there are some repetitive tasks in programming. Now I'm developing an application and I'm doing a blog module. I'm doing it from scratch. I was wondering if there is a repository...

View Article

problems with Uncaught SyntaxError: Unexpected token )

This is a little embarassing. I had my javascript code almost working, fooled with it a little too much trying to get the xhr working. I am using notepad as my editor and thus it has no syntax...

View Article


How do I include the OOP “defiant randomdotorg” library in codeigniter?

The class is here (with instructions). I have it added to  Code: application/libraries/randomorg When I add  Code: $this->load->library('RandomOrg\Random');  to my controller's constructor, I get...

View Article

Image upload is taking time

Hello All, I am using codeigniter 3 for my application development. I am using image upload into my application but image upload process is very very slow. So please help us to reduce the timing for...

View Article


Custom Routing in CodeIgniter

I am developing eCommerce site in CodeIgniter. I am facing problem in opening the pages of Admin. I have set the default_controller for the main site. Now you how can I open the pages of Admin. I want...

View Article

Managing login to multiple codeigniter application with ion_auth

Hi, the scenario is that we host 3 different CI apps that uses ion_auth for authentication module, and all 3 are hosted on the same server. The 3 has its own database where ion_auth should look for...

View Article

CI profile help for db qureis.

Hi I need some help on profile, i am running 10 db query on my home page including 4 models, but in profiling results it show for $db following DATABASE:  cms (page:$db)   QUERIES: 10 (0.0427 seconds)...

View Article
Browsing all 14343 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>