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

Fatal error: Class 'DOMDocument' not found in Codeigniter 2 and PHP 5.1

I use PHP 5.6 in my localhost and this script for generating pdf is working well. But in the server which is using PHP 5.1 I got that error. Here is the script in application/libraries/pdf.php.
Abaij
  • 853
  • 2
  • 18
  • 34
0
votes
1 answer

does ion auth library in codeigniter allow registration?

does ion auth library in codeigniter allow registration ?
ktm
  • 6,025
  • 24
  • 69
  • 95
0
votes
1 answer

A Database Error Occurred Error Number: 1054 Unknown column 'Array' in 'where clause'

i cannot get value $list_izin from array, how can i get value from array and set the value for where clause condition $list_izin = ['7','11','14','16','19','202','139','157']; $where = array( 'tmuser_userauth.userauth_id' => $userauth_id, …
0
votes
1 answer

How to send $data array type variable to all controllers so that it will show on all views?

I have a problem that I am making the dynamic menu so that I have to send $data['coursemenu'] array type variable which I am fetching from $data['coursemenu']=$this->CourseModel->fetchParentCourses(); and send this data to all controllers so…
Kartik Verma
  • 31
  • 1
  • 8
0
votes
1 answer

Dynamic header menus common for all pages in codeigniter

I want to make a dynamic menu and this dynamic menu is common for all pages of my website. This thing i have done in php but i have to achieve the same using codeigniter. So, what to do show all menus on all pages. I have done this thing on…
Kartik Verma
  • 31
  • 1
  • 8
0
votes
1 answer

Having trouble about how to attach file in email using codeigniter

This is my view form. Here is where the user will send and email with attached file/s.(This is a shortcut for my view form. Problem is the attached file.)
0
votes
1 answer

How to insert and update existing array data with one single query in Codeigniter ?

i have all data from table in arrays . In which we updated existing data and some added new data. This data had import from CSV and stored into array. The Question is: How to insert and update existing data with one single query in Codeigniter…
Musawer_ali
  • 11
  • 1
  • 8
0
votes
0 answers

codeigniter3 doesn't allow me to use this way, but Ci2 was working fine, to call a method of one controller to other controller

This is first controller 1. Controller A class A extends CI_Controller { public function __construct() { parent::__construct(); } function custom_a() { } } This is second controller 2. Controller B class B extends…
0
votes
2 answers

Why the config item call return error after Codeigniter update(1.7.2 to 2.0.3)

I updated my application to 2.0.3 from 1.7.2 using CI updation document. But now am stuck with an error in active record file(application/libraries/Activerecord.php). In active record i tried to get the config item using the $this->config Object…
user1752065
  • 179
  • 9
0
votes
2 answers

CodeIgniter 2.0 input library character issue

I am using codeigniter in an app. There is a form. In the textarea element, I wrote something including %Features% However, when I want to echo this by $this->input->post(key), I get something like �atures% The '%Fe' are vanished. In main…
HungryCoder
  • 7,506
  • 1
  • 38
  • 51
0
votes
1 answer

pagination logic without offset usage by max id as pagination filter condition for php codeigniter framework

i see there are few methods we can apply pagination, an one of it is utilizing CI pagination library that generates links for us to navigate. being main logic centered to fetching limited data relevant to display and iterate as move across…
user4382574
0
votes
2 answers

Error on over() Clause for am calculate the rows based on id's to next or previous value in mysql

I am facing an issue where my query is not executing and I am getting the error near the over clause but I want result like see the pic below: I mean I want result like 25000-9000 =16000 ; 16000-5000 =11000; display output…
0
votes
1 answer

not able to insert bulk record using php codeigniter

Provided with this array, i am trying to insert it into the table using insert_batch. $arrayOfQuestions contains multiple array like below: Array ( [0] => Array ( [question_desc] => In human beings, partial pressure of…
Jeevan R
  • 3
  • 4
0
votes
1 answer

Codeigniter Active record And Or combinations in where clause with multiple & nested groups

I have a complex SQL query and I want to implement it through Active Records. This query has several AND / OR clauses grouped together with another criteria. I have gone through various articles where they said that we can use group_start() and…
1 2 3
99
100