I developed an application in CakePHP - Windows.
Then I put it in Ubuntu and made the necessary settings. Everything works except the line:
$this-> set (
'projeto_id',
$this-> requestAction (
"/Projects/getprojectsofcategory",
array (
'setor_id' => $this->Registration-> read()['Registration']['setor_id']
)
)
);
gives me the following error:
Fatal Error Error: syntax error, unexpected '[', expecting ')'
and I do not understand why. If I comment out the line gives the following error because it is of the same genre.
Can someone explain me why this error?