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

Ability to store assets outside of the website in cheaper storage

I am trying to understand if there is a possibility to store assets outside of the folder structure of the website (outside the scope of codeigniter). My current infrastructure is using CodeIgniter-2 with PHP 7.1 on a IIS Windows platform.
0
votes
0 answers

Codeigniter 2.1.4 in seperate folder doesn't work

I setup my Codeigniter version 2.1.4 on Hostgator. When I put all the files (including application, system, public etc.) in the public_html folder, everything works as expected. But I decided to take all the files and folders out of public_html…
Zhen Cai
  • 11
  • 2
  • 3
0
votes
0 answers

PHP Blind SQL injection on my web application

im bulding a student management system using php and codeigniter. After running a webapp vulnerability scanner i got a critical error on 'stid' paremiter is vulnerable to blind sql injection. This paremiter is used when a student create account, so…
0
votes
1 answer

Cannot set new image name in codeigniter

I'm uploading multiple image in codeigniter, But when i set new name using this code $_FILES['attachment']['name']= $filename; I'm getting The filetype you are attempting to upload is not allowed. Please suggest solution to solve this…
0
votes
1 answer

Upload multiple file using codeignter with ajax jquery

I want to upload multiple files at a time in Codeigniter using jquery ajax, single upload is working but am trying to upload multiple files but getting this error: You did not select a file to upload for single selection this code was working but…
user3653474
  • 3,393
  • 6
  • 49
  • 135
0
votes
1 answer

xss_clean in Codeigniter 2 work fine but in Codeigniter 4 doesn't?

I'm trying to migrate a system in codeigniter 2 to version 4 of the same framework, but when I want to execute the function $nomUsr = $ security-> xss_clean ($ this-> input-> post ('nomUsr')); in CI4 this returns an error. I'm forgetting to load…
Emily
  • 314
  • 2
  • 17
0
votes
0 answers

Unable to load your default controller Please make sure the controller specified in your Routes.php file is valid

I use HMVC and I uploaded my site from local to online. I have a strange error: Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid. on my local server works fine! So sad! I changed only…
2kn
  • 1
0
votes
0 answers

How do I set a proper variable parameter right after the base URL? - Codeigniter

I'm trying to build a profile right after my base URL: Example: www.mysite.com/myprofile I set the route like this: $route['/?(.*)'] = "client/client_front/index/$1"; this works but now i can't access any other controller. I'm using…
0
votes
1 answer

How to save in json format with Codeigniter

I have the following:
zecaluis
  • 145
  • 1
  • 9
0
votes
0 answers

How i can get IMAP Inbox and save it to db in codeigniter?

I have the following code working in PHP 7, i use it to save my mail inbox into my db. $hostname = '{imap.gmail.com:993/imap/ssl/novalidate-cert}'; $username = 'Myemail@gmail.com'; $password = 'Mypassword'; $inbox =…
Sweetmoby
  • 27
  • 7
0
votes
1 answer

Undefined Variable error in Bootstrap View

I have a view that shows no. of urgent letters in the header as follows. I used the following lines within my code and that is working fine. $UrgentLetters is defined in the Controller and that got from the model properly.
MCIT Trends
  • 275
  • 1
  • 9
0
votes
0 answers

CodeIgniter: how to automatically logged out user from all active sessions after he has changed his password?

My website is made with CodeIgniter 2.1.2. But it has a problem. Suppose a user has logged into my website using Chrome. Then he has also logged into my website from Mozilla. When he changes his account password from chrome. He still can browse…
0
votes
0 answers

Codeigniter MySQL update

I have MySQL database used with Codigniter including following table too. +-------------------+-----------------+------+-------+--------+ | update_request_id | update_stock_id | item | r_qty | status…
mcode
  • 87
  • 10
0
votes
0 answers

How to get number of hours left from database time in Codeigniter

I Have following structure in my database : id | date | time (int) (varchar) (varchar) is storing date & time like this : date time 2020-07-04 06:15:00 Now i want to get those record whose current date & time is less than 2…
user3653474
  • 3,393
  • 6
  • 49
  • 135
0
votes
1 answer

CodeIgniter controller not interpreting hyphen correctly in function call

I'm having an odd problem. My controller is trying to call uri segments and is not interpreting the hyphen correctly. I don't get any error. Just the rest of the page beyond the call doesn't render. This is for a CMS and I have created an…
sehummel
  • 5,476
  • 24
  • 90
  • 137