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
1 answer

Cannot retain dropdown value after form submit in Codeigniter

I am working in codeigniter and using dropdown to populate values in select2 jquery dropdown, but the issue is i cannot retain the selected value after form submit, after using det_value it shows id not text. Here is my code: $name =…
user3653474
  • 3,393
  • 6
  • 49
  • 135
0
votes
2 answers

Error Number: 1364 Field 'modified_at' doesn't have a default value

when i try to make stricton value to TRUE then it shows error Error Number: 1364 Field 'modified_at' doesn't have a default value" and when try to make it FALSE then it shows error Variable 'sql_mode' can't be set to the value of…
0
votes
0 answers

Email Sending with AWS SES service in Codeigniter Version 2.26

https://i.stack.imgur.com/kbeCD.png I used AWS SES email service in codeigniter and got issue. i also installed aws sdk via composer. I attached my error as a screenshoot and describe some source code. Anyone can help me to solve this issue. Thank…
Sakura
  • 1
  • 2
0
votes
1 answer

Create a mobile version of my CodeIgniter site

I know this has been asked on here many, many times before, but I am trying to optimize our company gateway for mobile. This was contracted out in 2016 but the guy that started building it wasn't building it for mobile. And he didn't finish it. Now,…
0
votes
1 answer

What has been the experience in making a mobile app using phonegap and CodeIgniter?

I'm looking at making a mobile app using phonegap. However, I would like to use CodeIgniter as well. What has been the community's experience in doing such? I have tried googling it but only seem to find resumes and job wanted ads! I intend to use…
Jason Shultz
  • 940
  • 1
  • 19
  • 36
0
votes
3 answers

How to display image path dynamically?

I have the following code
thumbnail) { ?> news-report-juli19
I want to display images from mysql database dynamically, the…
mukesh
  • 19
  • 1
  • 7
0
votes
1 answer

Cannot validate textfield using codeigniter validation using callback

I want to validate from and to text fields using codeigniter validation. I have created validateSchedule function that will validate on callback but here validation is not working it is working only for required condition. public function…
user3653474
  • 3,393
  • 6
  • 49
  • 135
0
votes
2 answers

How do I tell Codeigniter not to store cache?

I have a Codeigniter 2.2 project. without no changing in the code my browser somehow holding cache for previous logged user. If i reload with clearing cache then it shows currently logged user. I have added My_Output core controller. and added…
0
votes
0 answers

Getting error while placing pagination on search in codeigniter

I am getting an error while placing pagination on search in Codeigniter. I tried the following code. on moving to next page it showing an error page. $search = $this->input->get('query'); $data['snippets'] = …
Upasana Chauhan
  • 948
  • 1
  • 11
  • 32
0
votes
2 answers

How to answer to command response? (shell_exec, exec)

I should enter confirmation code after my function execute. My command wait an answer but I can't reply. $cmd = 'cd/ && cd .... && ....'; echo shell_exec($cmd); I tried: shell_exec($confirmation_code); I must enter confirmation code after get…
0
votes
1 answer

CodeIgniter error "Unable to connect to your database server using the provided settings."

I've just started work on an old CI project with a lot of old code. The application works fine on the server, but when I pull it to my local environment (it's also in a github repository), I get the "Unable to connect to your database server using…
0
votes
2 answers

404 error on controller within several directories,

I am using Codeigniter 2.0.1. When I call for example.. http://localhost/index.php/admin/login ./controllers/admin/login.php It works fine but when I call the url below with a folder within the admin directory it throws the 404…
Wilky
  • 1
0
votes
0 answers

why we have to save the name of CI controller class name by capital letter

when we inheriting the class controller in codeignator so why we have to write the class name by capital letter and why we have to save by class name Blockquote
0
votes
1 answer

Codeigniter Database error handling with sql server

I just want to get the database error of my code and write an error log. but it shows this error message. my codeigniter version is 2.2.3 I user SQL Server as my database. How can I solve this. Fatal error: Uncaught Error: Call to undefined method…
0
votes
0 answers

How to create batch file to run my code igniter function from window task schedules

enter image description hereI'm trying to schedule my codeigniter function from window task scheduler my code igniter file structure is "C:\wamp\www\tas\application\controllers\my_controller\my_function" , I prepared my batch file like this php…
Bifa
  • 3
  • 3