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 to display all records from database in codeigniter?

I want to display all records from database to my view page. Having a table customers, how can I display all records of this table? Here is my customer_model.php file.. function all_customss() { $query=$this->db->query("select * from…
msginfosys
  • 57
  • 11
0
votes
1 answer

codeigniter email displays HTML tags in email

I have a email sending code in codeigniter. I am able to send email but the HTML displays tags in the email. I have used mailtype as HTML. But it still does not work. This is my email function. public function…
Sanchit
  • 1
  • 1
0
votes
2 answers

Bottlenecks slowing some part of my script

I have a script that perform the following steps A user logs in, adds an SMS message and specifies recipients. That information is added to "queued message table"; Some process sends the messages using an API and messages are moved to "sent message…
elf1984
  • 301
  • 1
  • 4
  • 12
0
votes
1 answer

Timezone settings problem in codeigniter

I am trying to setup CodeIgniter on my WAMP with PHP 5.3.5 and 2.0.2 CI. My "Hello World" application run successfully (I had only a controller and view). Next I added a Model test.php class Tests extends CI_Model { function __construct() { …
Abdel Raoof Olakara
  • 19,223
  • 11
  • 88
  • 133
0
votes
1 answer

Processing multi-dimensional arrays without loop

I need your advice and help i fetched an array of data from the database and i want to process each element one by one without using foreach loop, something like pop element a and process it, when finished pop element b and process it, when…
elf1984
  • 301
  • 1
  • 4
  • 12
0
votes
1 answer

Pass an array to the system core Controller.php in CodeIgniter

I am in the process of updating my CodeIgniter app from version 2.x to 3.1. Previously, I used to call this function to count the number of non-zero numbers in the passed-in array: function getCountOfNonZero($array, $d) { $NonZeroCount = 0; …
DanielAttard
  • 3,467
  • 9
  • 55
  • 104
0
votes
1 answer

How to upload image with Codeigniter frame work?

I require help with Image upload code with CodeIgniter. Please refer to my code below I did try File Upload class, but I am failing on using it on already created code for adding new Products. This is my Form
Riyaz
  • 109
  • 1
  • 1
  • 13
0
votes
1 answer

$this->image_lib->resize(); return false

I am using the code to resize the image if the file size is greater than 1MB,am using this in the model function,but it returns false.Whats wrong here. if($_FILES[$name]['size']/(1024)>1024){ $upload_data = $this->upload->data(); …
Jibin
  • 424
  • 2
  • 4
  • 15
0
votes
2 answers

How to fix '$this->db->insert_batch($this->tbl, $data) not showing any errors also not insert in DB'?

I am simply trying to use insert_batch() but it's not even inserting in my table as well and not even showing an error. But I am sure the flow of control has passed through the function insert_batch(). I have tried to include every field that is…
Rahul Shakya
  • 1,269
  • 15
  • 15
0
votes
1 answer

How to run Multiple codeigniter application in single shared hosting server?

I am using shared hosing for Codeigniter application for deployment. How can i run staging url on live server? 1) domain.com (Working) 2) domain.com/staging/ (Not working, showing 404 error) I created staging folder under public_html directory, now…
0
votes
1 answer

return(exit) in Controller on Codeigniter (Early termination)(with Twig Template Engine)

I was told that if I write a return in the controller, it will loop and cause an error on Codeigniter. For example, is it inappropriate to write(return view) as follows in Controller? public function example { // ... if (some conditions ...)…
Devatim
  • 331
  • 2
  • 10
0
votes
1 answer

doctrine model schema from mysql tables

i want to create all my database tables as doctrine table schema automatically. doctrine version is 2. Can anyone please help me how to get this by php itself instead of using command line tools plz? I am using codeigniter framework(2.0), so…
Rana
  • 5,912
  • 12
  • 58
  • 91
0
votes
1 answer

CodeIgniter project move from localserver to googlecloud

My codeigniter project on version 2 working well in Linux hosting but when i upload this project on google cloud i got error. When i load the database in autoload.php $autoload['libraries'] = array('database'); another project on core php…
pawan rao
  • 7
  • 1
0
votes
0 answers

How to crop image using imagemagick in codeigniter?

I am new to web development. I am using codeigniter MVC pattern framework right now. I have a problem on cropping images. I am currently developing an application which needs image cropping process when uploading profile pictures. After the research…
0
votes
2 answers

Having issue in loading model inside controller Codigniter 2.2.6

I have setup my Codeigniter inside the a sub-folder of my live website eg. www.example.com/project/ci. When i am trying to load model inside my controller i am getting error of Unable to locate the model you have specified. I have changed the…
Developer
  • 43
  • 1
  • 8