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
7
votes
3 answers

CodeIgniter + CSS

Good Day, I'm learning CodeIgniter with Smarty. My CSS file is stored in /App01/application/views/css/main.css To link my CSS I use:
Vojtech
  • 2,533
  • 9
  • 34
  • 65
7
votes
1 answer

How to pass validation error data through redirect()?

I have a page that contains a form and when any user submits it, the data goes to a controller and the controller checks the validation, if there is any error it redirects the user to the previous page( the page that contains the form), otherwise it…
black_belt
  • 6,601
  • 36
  • 121
  • 185
7
votes
4 answers

CodeIgniter 2.2.0 HMAC mismatch error

UPDATE: Even after downloading the "fixed" 2.2.0, update log files are still filling up with: Session: HMAC mismatch. The session cookie data did not match what was expected. After upgrading from CodeIgniter 2.1.3 to 2.2.0 I am getting the…
suncoastkid
  • 2,193
  • 7
  • 26
  • 45
7
votes
2 answers

Fatal error: Call to undefined function validation_errors() using codeIgniter

Fatal error: Call to undefined function validation_errors() using codeIgniter here's my comments.php view Name
Ashish Singh
  • 287
  • 2
  • 4
  • 8
7
votes
2 answers

Sending multiple email with codeigniter

I'm using Codeigniter 2 for my website. When send email to multiple users , on client( gmail, hotmail,..) it shows all addresse on details , how can i hide the addresses to show just the receiver address. Thanks
Nabil Lemsieh
  • 716
  • 4
  • 11
  • 27
7
votes
5 answers

CSV Import Library for CodeIgniter

Need to implement csv or xls import into Application created using CodeIgniter. Is there any library for this? Any suggestion appreciated.
Ivan Slaughter
  • 767
  • 1
  • 8
  • 26
7
votes
2 answers

How to extend a model from custom model in codeigniter

I created a model called Model_base extending from ci_model and added all common functions inside it class Model_base extends CI_Model { function __construct() { parent::__construct(); } function create() { //do insert data…
user1455455
7
votes
7 answers

Cannot remove index.php from CodeIgniter URL

My directory structure is /var/www/CI/ with all the folders viz., application, system under the folder CI. Have created a .htaccess file under CI. Following is the code in .htacess. RewriteEngine On RewriteCond…
JunaidKirkire
  • 878
  • 1
  • 7
  • 17
7
votes
2 answers

Join query of two databases in codeigniter

I need to write a join query of two tables from two databases and fetch the joined data. For eg, consider I have a database db1 which has some tables named companies, plans, customers. Suppose I need to join the two tables companies and plans with…
Anu
  • 131
  • 1
  • 1
  • 7
7
votes
4 answers

PHP/CodeIgniter Relational Database Array Building

SOLVED! Final answer is located at the bottom of this question I'm trying to make a menu builder using CodeIgniter, and for some reason, I can't seem to wrap my head around the concept, even though it seems simple enough (I'm new to PHP and CI).…
Chris Clower
  • 5,036
  • 2
  • 18
  • 29
7
votes
4 answers

CodeIgniter Validation: possible to validate GET query strings?

The form validation library seems to only work on POST. I need to use query strings and would like to use CI to validate the passed values. Is there a way to do this?
StackOverflowNewbie
  • 39,403
  • 111
  • 277
  • 441
7
votes
5 answers

Retrieve the group id of user in Ion Auth - Codeigniter

I am using Ion Auth for my codeigniter application and all seems good except for one thing. I need to display a list of users along with the groups they are in. How can I retrieve the group id of a particular user without making my own models and…
WebNovice
  • 2,230
  • 3
  • 24
  • 40
7
votes
3 answers

codeigniter + require letters and numbers in password

I'd like to use form validation to require a password that has BOTH alpha and numeric characters. Here's what I've come up with so far: $this->form_validation->set_rules('password', 'Password',…
chowwy
  • 1,126
  • 8
  • 26
  • 45
7
votes
4 answers

escapeshellarg() has been disabled for security reasons

When I want to upload anything in any form I see the Warning: escapeshellarg() has been disabled for security reasons message on my site. What can I do to fix this? My framework is codeigniter final version. Here is the full warning: A PHP Error was…
Schizo
  • 71
  • 1
  • 1
  • 3
7
votes
3 answers

CodeIgniter Upload image and then resize it

I am trying to upload images and resize them, so far the upload is working and also the creation of thumb nail images. But I cant get the original image to be resized. All that is happening is the file is directly uploaded to the folder in its…
user794846
  • 1,881
  • 5
  • 29
  • 72