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

Get 500 his page isn’t working when run migrate codeigniter2

I get a 500 page isn’t working when run migrate codeigniter2. I am new here and it's take me days from this bug Migate controller
daxx
  • 1
  • 1
0
votes
1 answer

How to retrieve record in group by with join table depend on MAX?

This my query in model: return $this->db->join('tbl_customer', 'tbl_customer.cus_code = tbl_cus_account.custcode') ->where("status", 1) ->where("DATE_FORMAT(nextbillingdate,'%Y-%m') <= ", date('Y-m')) …
Lorn Titya
  • 85
  • 1
  • 10
0
votes
1 answer

codeigniter params not working with defined route

I have defined route for particular URL, but with route params is not working, with same URL without route params is working, here is my URL for that https://XXXX.com/username/post/details/10425/50 And its for i have defined below…
Nikul Panchal
  • 663
  • 1
  • 14
  • 32
0
votes
1 answer

Codeigniter SUM query brings only one row

When I add SUM in Codeigniter SELECT, it returns only one row. But when I remove it, it returns all of the possible matching entries. $this->db->where('posts.status',1) ->select('posts.title') ->select('posts.description') …
0
votes
0 answers

codeigniter sql injection are there are any possible way to find out

In our application, which is build in codeigniter 2.8, a hacker hacked a specific page without sql injection. How can we find out the root cause of this issue? If you have any ideas on your end, please share.
0
votes
2 answers

Why we writing loading view last code variable codeigniter

Why do I pass a variable name when calling a view file? For example: $this->load->view("{$viewData->viewFolder}/{$viewData->subViewFolder}/index", $viewData); Why we writing $viewData at a last code line?
0
votes
3 answers

Check or Add to DB quickly

I'm using apache, php, mysql and code igniter and I have a database set up. In the database I have two columns that both need to be unique in combo: latitude and longitude. So I set up the database using this call: alter table pano_raw add unique…
Phil Salesses
  • 862
  • 1
  • 9
  • 31
0
votes
1 answer

How add translation to "name" fields in my array codeigniter?

I have array in codeigniter code how add translation in same line for name fields $ret = array( array( 'y' => $open_projects, 'name' => 'Open jobs', 'color' => '#fc0', ), array( …
0
votes
4 answers

CodeIgniter - Simple base_url question

I'm a bit confused here. I have a simple controller which loads a view. The view contains a form and links some CSS files. I don't really want to do ../../css/global.cssin my link tag. I want to use the base_url() method and then go /css/. I know a…
Joris Ooms
  • 11,880
  • 17
  • 67
  • 124
0
votes
0 answers

White screen display without error message in codeigniter after calling my views

I am trying to load my view files to redirect the page and I got white screen without any error. This is my controller snippets: if($this->M_Cart->hmacCompute($refNum,$toPay,$toPayCurrency)) { $this->load->view('templates/Navigation',…
generals
  • 3
  • 1
  • 6
0
votes
1 answer

Why does my PHP error controller work with PHP 5, but not PHP 7?

I'm migrating my project from PHP 5 to PHP 7.3, I have made the changes for the decrypted function with alternative functions. But am facing issue with the one controller file. The same code works for PHP5 version, But when am trying to execute same…
Gajanan Kolpuke
  • 155
  • 1
  • 1
  • 14
0
votes
0 answers

Can't get Code Igniter to connect to local SQL Server Express instance

I have been struggling for the last three hours with the following issue and so far I can't get this to work properly. I have an SQL Express instance running in my PC, I have checked already the port 1433 is listening by running netstat -an: I am…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
0
votes
2 answers

Codeigniter 2 not returning from model as object only as result array

So, i've been using codeigniter for a while and I've never had an issue running a query in my model and returning it to my controller which then passes it into my view where I access it as an object, like so: MODEL (somemodel) function getdata() { …
user578994
0
votes
0 answers

how do I make the selected reservation id not reappear when adding data?

I have a program like the one below, how do I make the selected reservation id not reappear when adding data?
0
votes
1 answer

Codeigniter selecting schema in Postgresql

My application is using CodeIgniter 2 and want to connect it to postgresql. Database name is tirta and schema is wening. My problem is it always connect to schema public. How can I fix it? Here is my database…
Abaij
  • 853
  • 2
  • 18
  • 34
1 2 3
99
100