Eduardo Fuerte
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:
The CodeIgniter's code:
Thanks in advance!
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:
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'] = '
Thanks in advance!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Now it's really perfect running.
ASKER
I have to better study PHP7 new features...