Link to home
Start Free TrialLog in
Avatar of Eduardo Fuerte
Eduardo FuerteFlag for Brazil

asked on

Could you point a work around to this PHP7 error: Message: Methods with the same name as their class will not be constructors in a future version of PHP; xxx_model has a deprecated constructor ?

Hi Experts

Could you point a work around to this PHP7 error: Message: Methods with the same name as their class will not be constructors in a future version of PHP; xxx_model has a deprecated constructor ?

Accordingly to:
User generated image
The CodeIgniter's  code:
<?php
    class Camaras_model extends CI_Model{
        var $conf;
        function camaras_model(){
           
             $this->conf= array(
                'start_day'=>'monday',
                'day_type'=>'abr',
                'show_next_prev'=>true,
                'next_prev_url'=>base_url().'camarashome/agenda',
                );
             $this->conf['template'] = '

Open in new window


Thanks in advance!
ASKER CERTIFIED SOLUTION
Avatar of gr8gonzo
gr8gonzo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eduardo Fuerte

ASKER

Thank you gr8gonzo!

I have to better study PHP7 new features...
Now it's really perfect running.