Top "Codeigniter-2" questions

CodeIgniter 2.x is an old and no longer supported version of the popular PHP framework.

CodeIgniter Passing POST data from RestClient to RestServer API

I've spent my whole day trying to figure out this problem. Posting this issue here is my last hope. I …

php codeigniter codeigniter-2 rest-client codeigniter-restserver
Is there a function like _compile_select or get_compiled_select()?

Looks like _compile_select is deprecated and get_compiled_select is not added to 2.1.0. Are there any other functions like …

codeigniter activerecord codeigniter-2
setting cookies with HTTPOnly flags in codeigniter

I'd like to know how to set cookies as HTTPOnly in Codeigniter. I reviewed the documentation and didn't see how …

codeigniter cookies codeigniter-2 xss
Codeigniter application getting hacked, code injected in index.php

I have a codeigniter 2.0.2 project that keeps getting hacked. There are two main issues: Malicious code is being added to …

php security codeigniter codeigniter-2 code-injection
How to store multi byte characters in SQL Server database using CodeIgniter

I'm using MS SQL Server and CodeIgniter 2 with Active Record for a project I'm working on, and I just stumbled …

php sql-server-2008 unicode codeigniter-2
Pagination do not correct display page numbers Codeigniter

My controller function function test($start_from = 0) { $this->load->library('pagination'); $data = array(); $per_page = 3; $total = $this->…

php codeigniter pagination codeigniter-2
Route to multiple sub folders in CodeIgniter

I have a admin folder set up in my controllers directory, under that i have 3 seperate sub-folders with controllers inside …

php codeigniter routes codeigniter-url codeigniter-2
CodeIgniter use CSRF protection only in some pages

What I want to do is to protect some sensitive forms from CSRF attack in codeigniter but not all pages. …

codeigniter codeigniter-2 csrf
Accessing value of public variable in codeigniter controller

Does anyone knows how to access the value of the public controller variable which has been updated by another function? …

php codeigniter codeigniter-2
Join query of two databases in codeigniter

I need to write a join query of two tables from two databases and fetch the joined data. For eg, …

php mysql join codeigniter-2 multiple-databases