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
0
votes
2 answers

How can I optimize this raw SQL and perhaps implement it via CodeIgniter?

It's been a while since I've written raw SQL, I was hoping someone could help me out in optimizing this SQL query so that it works across, both, MySQL and PostgreSQL. I would also have to implement this via CodeIgniter (2.x) using ActiveRecord, any…
Housni
  • 963
  • 1
  • 10
  • 23
0
votes
2 answers

How to pass one of the mysql query results in the model from controller?

In my controller I have called a model that makes a mysql query to fetch information from table. It is working okay but now under the same function I want to call another model and make a query based on one of the results from the previous mysql…
black_belt
  • 6,601
  • 36
  • 121
  • 185
0
votes
3 answers

Full path in css?

For example i have this line in my css file to load an image. It is a label icon in the sidebar. background-image:url(../assets/images/icons/arrow_state_grey_expanded.png); Since it is relative path, sometimes when i open a certain page, it cant…
cyberfly
  • 5,568
  • 8
  • 50
  • 67
0
votes
3 answers

How to display Serial Numbers in a table that has been created using table library in codeigniter?

I know how to create pagination and generate a table containing information from database in codeigniter, but I don't how to display the serial numbers for each row in the table. Example: SL. Name Email 1. Srijon …
black_belt
  • 6,601
  • 36
  • 121
  • 185
0
votes
4 answers

Fetch row which exist between date time range in codeigniter

I have these rows in my table with start and end column in database like these are of datatype datetime start | end 1 2022-10-27 11:59:00 2022-10-27 01:00:00 2 2022-10-28 01:59:00 2022-10-28 05:00:00 3 …
user3653474
  • 3,393
  • 6
  • 49
  • 135
0
votes
1 answer

Disable PHP errors from displaying on the client?

I understand this has been asked a bunch of times and probably appropriately answered so I ask you give me some grace here. I want to log errors to the error log but NOT display them to the client and for some reason nothing I've tried is making…
JSP
  • 547
  • 1
  • 4
  • 18
0
votes
1 answer

CodeIgniter 2 no longer able to use PATH_INFO after modifying .htaccess

I'm brand new to CI and I'm trying to remove the annoying "index.php" from the URLs. This is the .htaccess I'm using: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$…
0
votes
1 answer

Remove index.php for multiple applications in Codeigniter

I have two folders in application for dev/ and live/ sharing the same system. This is a fresh install. How do I remove the index.php in the url via htaccess? I've tried the provided code: RewriteEngine on RewriteCond $1…
jaysonp
  • 261
  • 1
  • 3
  • 4
0
votes
1 answer

codeigniter 2.0 - Internal server error 500 when there is a database error

Codeigniter 2.0 gives internal server error if there is a database error. and this is how i have coded... if($this->db->query($query))showerror(); but the the query method is throwing an error before the if condition gets executed. i wanted to do…
Jayapal Chandran
  • 10,600
  • 14
  • 66
  • 91
0
votes
1 answer

Problem with returning querystring from Linkedin for Auth using Codeigniter 2.0.3

Firstly, I am running CI 2.0.3. Using good ol' google, it wasn't difficult to find code to achieve my current problem. I have found these sources, but they have been written using 1.7.2:…
PaulM
  • 3,281
  • 3
  • 28
  • 38
0
votes
0 answers

You must use the "set" method to update an entry

codeigniter 2.2.2 No changes were made to the site code on the site, only work was carried out through the site admin panel to add information to the site. I do not understand why this error appeared, since before that everything worked correctly.…
Proger
  • 1
0
votes
1 answer

Codeigniter 2.0.3 and Adodb Integration/Installation

How do you integrate Codeigniter 2.0.3 and Adodb?
user921864
0
votes
1 answer

Codigniter DB backup

Unable to get the data base backup $this->load->dbutil(); $db_format=array('format'=>'zip','filename'=>'my_db_backup.sql'); $backup=&…
0
votes
2 answers

Neo4jPHP and CodeIgniter (Neo4j)

How do you get Neo4jPHP to autoload as a library in CodeIgniter 2 ? https://github.com/jadell/Neo4jPHP http://codeigniter.com/ Neo4jPHP is a wrapper for the Neo4j SERVER REST API. I have the Neo4j server running and used PHP to populate the DB with…
thinkadoo
  • 183
  • 8
0
votes
1 answer

Jquery redirect not saving codeigniter session

I have a register page in which via ajax request i want to redirect the user to the logged in page. But, this particular ajax request does a redirect but doesn't pass on the session after the POST request var dataString = 'name='+ name + '&email='…
gauravtechie
  • 95
  • 11