Parse error: syntax error, unexpected '::' |
02-18-2019, 08:24 AM
(This post was last modified: 02-19-2019, 12:47 AM by neuron. Edit Reason: PHP VERSION )
There was error on loading of otobil_model but instead of showing me that error I got "Parse error: syntax error, unexpected '::'" this error.
When I fixed model loading error this error is gone. So the result is, there is nothing to prevent us using this way: $this->otobil_model::CONSTANT_NAME As it turns out PHP 5.6 does not support $this->otobil_model::CONSTANT_NAME this type of referencing. I got this error because of I had a 5.6 PHP installed and when I run it on PHP 7.0 it worked; |
Messages In This Thread |
Parse error: syntax error, unexpected '::' - by neuron - 02-18-2019, 07:27 AM
RE: Parse error: syntax error, unexpected '::' - by ciadmin - 02-18-2019, 08:01 AM
RE: Parse error: syntax error, unexpected '::' - by neuron - 02-18-2019, 08:24 AM
|