G
G
green1762016-05-10 19:11:39
CodeIgniter
green176, 2016-05-10 19:11:39

How to use codeigniter and php7?

How to get codeigniter to work with php 7? everything crashes when I try to connect to the database, a piece of code just falls out on the page where the connection to the database begins, even if it is commented out
What I see when I try to open localhost

db->order_by('pos','DESC')->where('display','1')->get('catalog'); // return $query->result_array(); // } // // $query = $this->db->get_where('catalog', array('id' => $slug)); // return $query->row_array(); // }

piece of code from the model
//                    $query = $this->db->order_by('pos','DESC')->where('display','1')->get('catalog');
//                    return $query->result_array();
//            }
//
//            $query = $this->db->get_where('catalog', array('id' => $slug));
//            return $query->row_array();

Where do you need to edit?
Version CI 3.0.4

Answer the question

In order to leave comments, you need to log in

1 answer(s)
@
@xstudent, 2016-05-24
_

php-fpm 7.0.6 + CI 3.0.0 - normal flight.
Does everything work except for the database?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question