In MVC OOP I am getting this warning:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Data_model has a deprecated constructor in
Here is the class in my file data_model.php
Class Data_model extends CI_Model { function data_model() { $this->load->database(); $this->table_name = 'data'; }
function data_model() {
to
function __construct() {