Can you please tell me an error in line 3

class MY_Controller extends CI_Controller { protected $header = []; protected $data = []; protected $footer = []; protected $user = false; 

Closed due to the fact that the essence of the question is not clear to the participants of Dmitriy Simushev , Visman , Alex , rdorn , Nicolas Chabanovsky 29 Dec '16 at 5:16 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • what error gives? - Mikhail Vaysman
  • I have already figured out the version of php, sorry that I did not indicate the error itself - woyadagiw

1 answer 1

Write what error is writing? Perhaps you have a version of php 5.3 or lower on your server, then you need to declare arrays like this

 protected $header = array(); protected $data = array(); protected $footer = array(); 

But it is still better to switch to a newer version of php.