Questions tagged [codeigniter-2]

CodeIgniter 2.x is an old and no longer supported version of the popular PHP framework. Please refer to the [codeigniter] tag for more information.

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

The last 2.x version (2.2.6) was released on October 31st, 2015, which is also the date when security maintenance support for the 2.x version tree was officially ended.

For more up-to-date information on the Codeigniter framework, please refer to the tag.

Links:

3146 questions
8
votes
4 answers

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 of them. -- Controllers ---- Admin ------ Dashboard -------- dashboard.php -------- file.php ------ Members --------…
CodyRob
  • 249
  • 1
  • 2
  • 8
8
votes
6 answers

class name collision when using codeigniter 2.0 with Datamapper?

I am using CI2.0 with PHP 5.3 I just started to use “Datamapper ORM” and it is excellent!! however their is a one big problem regarding the classes’ names I have a database table called “users” so my dm model is “user” and also I have a controller…
ahmed
  • 14,316
  • 30
  • 94
  • 127
8
votes
2 answers

CodeIgniter compatibility with PHP version?

I am using CodeIgniter 2.2.6 with PHP 5.5 and it works fine. Now I want to upgrade PHP to version 5.6.6 my question is, is CodeIgniter compatible with PHP 5.6.6? I can't upgrade CodeIgniter to a new version because I have many models based on…
jamal
  • 183
  • 1
  • 3
  • 15
8
votes
3 answers

You are not a sandbox user of this client. Error Codeigniter-Instagram api

In my codeigniter project I am trying to use Instagram API for log in. This is the library which I am using. But when going to the login page, it is showing error {"code": 403, "error_type": "OAuthForbiddenException", "error_message": "You are…
Arun
  • 3,640
  • 7
  • 44
  • 87
8
votes
3 answers

CodeIgniter - print custom values in request header

How can I print the values set in the header of a received request using CodeIgniter? I tried print_r($_SERVER); which doesn't help me. I'm hoping there's a different way using CI.
john
  • 1,561
  • 3
  • 20
  • 44
8
votes
3 answers

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. To protect from CSRF if I set it in config.php it applies for all pages. is there any way to do that only for some pages by setting in…
esrpim
  • 149
  • 1
  • 2
  • 9
8
votes
3 answers

Codeigniter Setting Homepage ( Default Controller )

I'm trying to implement page templating in my codeigniter application, templating is working fine for instance, i have a blog page, which i'm trying to assign as my homepage, with different view and pagination and so on. When i write…
user1621727
8
votes
6 answers

How to get current date in codeigniter

How to get current date in codeigniter in YY-mm-dd format. I wants to get current date in YY-mm-dd frmat and put this value into input text box
user2248165
8
votes
3 answers

Code Igniter 2.1 autocomplete/IntelliSense in Eclipse

I am using Eclipse PDT to code with PHP Code Igniter. I would like to get auto complete working. Anyone know how I can accomplish this? I've found a few online tutorials but had no success.
user1797484
  • 758
  • 3
  • 10
  • 20
8
votes
4 answers

Codeigniter - best way to use two different database

Does someone knows the best practice for using 2 different database in my application? I need to store data in both databases which are differently located (host,username,password , all does change). I'm planning to create models as usual, and in…
itsme
  • 48,972
  • 96
  • 224
  • 345
8
votes
0 answers

CRUD for Codeigniter, grocerycrud or carbogrid?

I am using CodeIgniter for my website. I am currently trying to implement an admin section where I've to enable CRUD features. I searched online and came across two different extensions for CI. Grocerycrud http://www.grocerycrud.com Carbogrid…
i_nomad
  • 795
  • 2
  • 7
  • 9
8
votes
1 answer

Codeigniter REST CSV import to mysql

I want to post csv file on my controller using API.I'm using Codeigniter REST Library by phil sturgeon. How to implement on the client side the importing of CSV to my REST Server.I just want to ask because I can't find any documentation about it.
program taylor
  • 119
  • 1
  • 2
  • 8
8
votes
1 answer

Removing red eye from an Image on the client side using Jquery

I have the following html code rendered on my client's browser:
This particular image is uploaded by the user and then displayed here. I need to allow my user to remove any red-eye from…
unni
  • 2,891
  • 4
  • 19
  • 22
7
votes
6 answers

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 upon this issue: When I submit a form that contains Chinese or Hindi characters, I store it in a table, and when I view it all I get are…
Loupax
  • 4,728
  • 6
  • 41
  • 68
7
votes
3 answers

How to display image from database in CodeIgniter?

I am using CodeIgniter 2.1.0 and MySQL database. I have uploaded an image through a form and successfully stored it in a uploads directory and I have also successfully stored the full path of the image in my database. but i am having problem with…
Shabib
  • 1,697
  • 4
  • 20
  • 39